fix: one rule for the held file a hash names

The system index read sha1 and md5 only, the file lookup any index
with no size bound, the gap table any index unbounded. declared_records
in model.database follows the resolver: a crc32 names only a record of
the declared size, and beside a stronger hash only what it names.
systems.json gains 511 held files declared by sha256 or crc32, and 41
MAME members no longer point at Chihiro's ver1305.bin through the crc32
of an erased flash block.
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 02:18:40 +01:00
1 parent f143a8719b
commit 40dadc5dcd
6 files changed
+98 -44

No files matched your search

+1 -1
View File
@@ -785,7 +785,7 @@ class TheLookupRecipeSaysWhatASha1Misses(unittest.TestCase):
def test_the_page_and_the_records_agree(self):
record = {"layer": "platform", "algorithm": "md5", "value": "0" * 32,
"name": "dmg_boot.bin", "owner": "recalbox"}
self.assertEqual(lookup._held_under_every_hash([record], {}, {}), [])
self.assertEqual(lookup._held_under_every_hash([record], {}), [])
self.assertNotIn("sha1", record)
page = " ".join(datapage.generate_data_page([]).split())
self.assertNotIn("none is needed", page)