fix: write retrodeck repeats to each component

duckstation and retroarch both list the PS1 BIOS with one md5, and the
entry was filed under the first component read: an export correction
reached duckstation's manifest and left retroarch's line as it was.
component now lists every component that repeats an entry (a string for
one), and the exporter writes the entry back to each. A repeat is the
same name, path, hashes, native system and requirement: MAME's and
FBNeo's cchip.zip, or two required labels, stay two entries, since an
export corrects a line by its system and writes its requirement back.
Rescraped at components fcd0d729: 73 entries list two components, 9
come back as their own entries. install/retrodeck.json is unchanged.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 21:04:19 +01:00
1 parent e8704a793e
commit 3779f07bb5
8 files changed
+433 -104

No files matched your search

+2 -1
View File
@@ -19,6 +19,7 @@ from resolve.archives import contents_members, holds_required_members
from resolve.standalone import platform_layouts, standalone_set
from resolve.cores import resolve_platform_cores
from core.hashing import declared_hash_lists, lists_hashes
from model.declarations import declared_components
from model.profiles import lists_files
from resolve.collisions import accepted_by_all, find_collisions
from resolve.content import size_fits
@@ -110,7 +111,7 @@ def doubled_destinations(
readers.append(reader)
declarations.append({
"system": entry.get("native_system") or "",
"component": entry.get("component") or "",
"component": ", ".join(declared_components(entry.get("component"))),
"name": entry.get("name", ""),
"hashes": declared_hash_lists(entry),
"file": local,