This commit is contained in:
Danny McClanahan 2020-10-09 00:44:44 -07:00
parent 22406d48fc
commit 24ad324aef
No known key found for this signature in database
GPG Key ID: EB6A784C843782EA
2 changed files with 2 additions and 3 deletions

View File

@ -518,10 +518,9 @@ class RequirementPreparer(object):
reqs = [req for req in reqs if req.needs_more_preparation]
for req in reqs:
# Determine if any of these requirements were already downloaded.
download_dir = self._get_download_dir(req.link)
if download_dir is not None:
if self.download_dir is not None and req.link.is_wheel:
hashes = self._get_linked_req_hashes(req)
file_path = _check_download_dir(req.link, download_dir, hashes)
file_path = _check_download_dir(req.link, self.download_dir, hashes)
if file_path is not None:
self._downloaded[req.link.url] = file_path, None
req.needs_more_preparation = False