feat: report hash proof in existence packs

This commit is contained in:
Abdessamad Derraz committed 2026-08-07 16:23:15 +02:00
1 parent 42e2f363ec
commit 8bd2083e80
2 files changed
+56

No files matched your search

+11
View File
@@ -1353,6 +1353,17 @@ def generate_pack(
file_status[dedup_key] = "untested"
file_reasons[dedup_key] = "hash mismatch"
else:
if status == "hash_mismatch" and local_path:
declared = file_entry.get("md5", "") or file_entry.get(
"sha1", ""
)
actual = compute_hashes(local_path)
file_reasons.setdefault(
dedup_key,
f"packed per {platform_display} existence check; "
f"declared hash {declared}, file md5 "
f"{actual['md5']} sha1 {actual['sha1']}",
)
file_status.setdefault(dedup_key, "ok")
# Emulator-level validation: informational only for platform packs.