We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b44c217 + 7dea92e commit b9bdad2Copy full SHA for b9bdad2
src/pip/_internal/operations/prepare.py
@@ -166,7 +166,9 @@ def unpack_http_url(
166
unpack_file(from_path, location, content_type)
167
168
# a download dir is specified; let's copy the archive there
169
- if download_dir and not already_downloaded_path:
+ if download_dir and not os.path.exists(
170
+ os.path.join(download_dir, link.filename)
171
+ ):
172
_copy_file(from_path, download_dir, link)
173
174
@@ -260,7 +262,9 @@ def unpack_file_url(
260
262
261
263
264
# a download dir is specified and not already downloaded
265
266
267
268
269
270
0 commit comments