mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 14:28:54 -06:00
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:
1 parent
f143a8719b
commit
40dadc5dcd
6 files changed
+98
-44
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user