fix: ship the archive covering a twin md5 pin

RetroDECK pins bios/cdibios.zip and bios/stvbios.zip twice, the older
MAME set for its mame component and the full set for the RetroArch
core. The first pin in system order shipped the smaller set, which
current MAME rejects (cdi.cpp:922 needs the slave MCU ROM). The archive
whose members cover the other now ships: it serves both readers.
This commit is contained in:
Abdessamad Derraz committed 2026-11-19 06:33:17 +01:00
1 parent e9181d6ce2
commit a9c0dcac3c
5 files changed
+206 -110

No files matched your search

+3 -2
View File
@@ -54,8 +54,9 @@ def find_collisions(
fold = bool(config.get("case_insensitive_fs", False))
systems = config.get("systems") or {}
# The builder lets a hash-constrained declaration that resolves by
# content take the path, else the first it reaches walking the systems
# sorted: the same choice says which file ships.
# content take the path, the archive covering the others when two md5
# pins tie, else the first it reaches walking the systems sorted: the
# same choice says which file ships.
preferred = set(
preferred_entries(systems, db, "bios", "", False, zip_contents, True).values()
)