mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 10:37:54 -06:00
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:
1 parent
e8704a793e
commit
3779f07bb5
8 files changed
+433
-104
No files matched your search
@@ -22,6 +22,17 @@ def declared_slot(entry: dict, prefix: str = "") -> str:
|
||||
return slot
|
||||
|
||||
|
||||
def declared_components(value: object) -> list[str]:
|
||||
"""RetroDECK: the components whose manifests declare one entry.
|
||||
|
||||
One is written as a string, several as a list: duckstation's and
|
||||
retroarch's manifests both list scph5501.bin with one md5.
|
||||
"""
|
||||
if isinstance(value, list):
|
||||
return [str(item) for item in value if item]
|
||||
return [str(value)] if value else []
|
||||
|
||||
|
||||
def platform_declarations(
|
||||
config: dict, db: dict, *, enrich: bool = True
|
||||
) -> dict[str, list[tuple[int | None, str]]]:
|
||||
|
||||
Reference in new issue
Block a user