fix: check size and adler32 on data directory hits

A data directory copy found by name was returned without the size and
Adler-32 checks the name steps over bios/ apply. The verdict now runs
both, for the cache walk, the foreign-tree fallback and release assets.
This commit is contained in:
Abdessamad Derraz committed 2026-10-17 18:20:49 +02:00
1 parent 5a3d9bdc9d
commit 425a0de0e5
3 files changed
+44 -1

No files matched your search

+1
View File
@@ -74,6 +74,7 @@ def _verified_asset(
crc_candidates=set(declared["crc32"]),
zipped_file=file_entry.get("zipped_file"),
declared_size=file_entry.get("size"),
file_entry=file_entry,
)
if verdict != "hash_mismatch":
return cached