From a659a9ce37fda1e19d4135ac1ddde5ada21de747 Mon Sep 17 00:00:00 2001 From: ptone Date: Sun, 3 Apr 2011 06:45:32 -0700 Subject: [PATCH] resolve symlinks in local files the tar libraries choke when checking valid filenames because they don't resolve symlinks --- pip/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pip/util.py b/pip/util.py index d2dae97a81c..3eb34ab1d65 100644 --- a/pip/util.py +++ b/pip/util.py @@ -457,6 +457,7 @@ def cache_download(target_file, temp_location, content_type): def unpack_file(filename, location, content_type, link): + filename = os.path.realpath(filename) if (content_type == 'application/zip' or filename.endswith('.zip') or filename.endswith('.pybundle')