mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 02:57:52 -06:00
fix: record no narrowing axis for an older list
A list with cores and neither systems nor regions is from an older release, and recorded_axes reads none from it. A pack built here or by generate_pack wrote cores and regions in its manifest. The installer pack now asks recorded_axes, and the builder follows the same rule.
This commit is contained in:
1 parent
7284a90a20
commit
b338d94fa0
7 files changed
+53
-33
No files matched your search
+11
-7
@@ -68,13 +68,17 @@ def pack_systems(install_manifest: dict, targets: dict | None = None) -> dict:
|
||||
# the pack alone it names that list as the way to --core and --region
|
||||
# only when the list records them. It named install/misterfpga.json for
|
||||
# --core, a list that records no core.
|
||||
records = {"systems"} if any("systems" in entry for entry in entries) else set()
|
||||
if any(copy.get("cores") for entry in files
|
||||
for copy in [entry, *entry.get("alternatives", []),
|
||||
*entry.get("slot_choices", [])]):
|
||||
records.add("cores")
|
||||
if records or any("regions" in entry for entry in entries):
|
||||
records.add("regions")
|
||||
# A list with neither systems nor regions is from an older release:
|
||||
# its cores are read by nothing that narrows.
|
||||
records: set[str] = set()
|
||||
if any("systems" in entry or "regions" in entry for entry in entries):
|
||||
records = {"regions"}
|
||||
if any("systems" in entry for entry in entries):
|
||||
records.add("systems")
|
||||
if any(copy.get("cores") for entry in files
|
||||
for copy in [entry, *entry.get("alternatives", []),
|
||||
*entry.get("slot_choices", [])]):
|
||||
records.add("cores")
|
||||
systems = {
|
||||
"files": {entry["dest"]: list(entry.get("systems") or [])
|
||||
for entry in files if "systems" in entry},
|
||||
|
||||
Reference in new issue
Block a user