mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-11 05:53:23 -05:00
feat: report hash proof in existence packs
This commit is contained in:
1 parent
42e2f363ec
commit
8bd2083e80
2 files changed
+56
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user