Skip to content

Commit 1e4aa42

Browse files
michael-katugushev
andcommitted
Update piptools/repositories/pypi.py
Co-authored-by: Albert Tugushev <albert@tugushev.ru>
1 parent c1789cf commit 1e4aa42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

piptools/repositories/pypi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,10 @@ def _get_matching_candidates(
389389
return candidates_by_version[matching_versions[0]]
390390

391391
def _get_file_hash(self, link: Link) -> str:
392-
log.debug(f"Hashing {link.show_url}")
393392
if link.hash_name == FAVORITE_HASH:
393+
log.debug(f"Getting hash from link {link.show_url}")
394394
return ":".join([FAVORITE_HASH, link.hash])
395+
log.debug(f"Hashing {link.show_url}")
395396
h = hashlib.new(FAVORITE_HASH)
396397
with open_local_or_remote_file(link, self.session) as f:
397398
# Chunks to iterate

0 commit comments

Comments
 (0)