Skip to content

Commit b039372

Browse files
committed
fix(fetch): Include revision in hashing for pypi
1 parent 1bbc714 commit b039372

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

acbs/fetch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def fetch_source(info: List[ACBSSourceInfo], source_location: str, package_name:
2828
# in generate mode, we need to fetch all the sources
2929
if not i.enabled and not generate_mode:
3030
logging.info(f'Source {count} skipped.')
31-
url_hash = hash_url(i.url)
31+
# special handling for PyPI type
32+
url = i.url if i.type != "pypi" else f"pypi://{i.url}/{i.revision}"
33+
url_hash = hash_url(url)
3234
fetch_source_inner(i, source_location, url_hash)
3335
return None
3436

0 commit comments

Comments
 (0)