We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0e2d7d commit 770d71dCopy full SHA for 770d71d
1 file changed
pip/flatpak-pip-generator.py
@@ -424,15 +424,15 @@ def get_pypi_files() -> list[dict]:
424
nonlocal pypi_files
425
if pypi_files is None:
426
all_files = fetch_pypi_files(name, version)
427
+ pypi_hashes = {f["digests"]["sha256"] for f in all_files}
428
if known_hashes:
- pypi_hashes = {f["digests"]["sha256"] for f in all_files}
429
if known_hashes != pypi_hashes:
430
print(
431
f"\nWARNING: Requirements file does not include hashes for all "
432
f"artifacts for {name}=={version}. Resolution may be"
433
"restricted.\n"
434
)
435
- missing = known_hashes - {f["digests"]["sha256"] for f in all_files}
+ missing = known_hashes - pypi_hashes
436
if missing:
437
sys.exit(
438
f"ERROR: Hash(es) {missing} for {name}=={version} "
0 commit comments