Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Oct 9, 2020
1 parent 22406d4 commit 24ad324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
File renamed without changes.
5 changes: 2 additions & 3 deletions src/pip/_internal/operations/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,9 @@ def prepare_linked_requirements_more(self, reqs, parallel_builds=False):
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
Expand Down

0 comments on commit 24ad324

Please sign in to comment.