Report wrong checksum when there is a checksum mismatch in a package build (#2943)

This commit is contained in:
Hood Chatham 2022-08-06 05:41:11 +02:00 committed by GitHub
parent 14708295cd
commit 4c8d99451b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ def check_checksum(archive: Path, source_metadata: dict[str, Any]) -> None:
if len(chunk) < CHUNK_SIZE:
break
if h.hexdigest() != checksum:
raise ValueError(f"Invalid {checksum_algorithm} checksum")
raise ValueError(f"Invalid {checksum_algorithm} checksum: {h.hexdigest()}")
def trim_archive_extension(tarballname: str) -> str: