mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-10 12:03:53 -06:00
fix: match release packs by exact name
release_record rebuilt nothing from the name builder: a substring match took RetroArch_v1.22.2_AndroidArm64V8A_BIOS_Pack.zip for the RetroArch pack. The record now refuses any pack that is not a registered platform's full pack and stores the platforms each pack serves, which the readers use instead of the pack name.
This commit is contained in:
1 parent
0242dc77ee
commit
43337c6719
7 files changed
+176
-47
No files matched your search
@@ -40,12 +40,14 @@ SPLIT_RECORD = {
|
||||
"Batocera_1_BIOS_Pack.part1of2.zip",
|
||||
"Batocera_1_BIOS_Pack.part2of2.zip",
|
||||
],
|
||||
"platforms": ["batocera"],
|
||||
},
|
||||
"RomM_1_BIOS_Pack.zip": {
|
||||
"files": 1,
|
||||
"extracted_size": 1024**2,
|
||||
"download_size": 1024**2,
|
||||
"assets": ["RomM_1_BIOS_Pack.zip"],
|
||||
"platforms": ["romm"],
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -244,7 +246,7 @@ class SizesComeFromTheRecord(unittest.TestCase):
|
||||
tag, platform, download, extracted = quoted.groups()
|
||||
if tag != RECORD.get("tag"):
|
||||
self.skipTest(f"release.json records {RECORD.get('tag')}, not {tag}")
|
||||
pack = release_record.pack_for(platform, RECORD)
|
||||
pack = release_record.pack_for(platform.lower(), RECORD)
|
||||
self.assertEqual(download, format_size(pack["download_size"]))
|
||||
self.assertEqual(extracted, format_size(pack["extracted_size"]))
|
||||
|
||||
|
||||
Reference in new issue
Block a user