Skip to content

Commit

Permalink
Fix/use 4e6d935 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Oct 12, 2015
1 parent 13d43e3 commit 6e1b32c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pip/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,7 @@ def unpack_file_url(link, location, download_dir=None):

# If it's a url to a local directory
if os.path.isdir(link_path):
if os.path.isdir(location):
rmtree(location)
shutil.copytree(link_path, location, symlinks=True)
_copy_dist_from_dir(link_path, location)
if download_dir:
logger.info('Link is a directory, ignoring download_dir')
return
Expand Down

0 comments on commit 6e1b32c

Please sign in to comment.