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:
Abdessamad Derraz committed 2026-11-21 06:04:39 +01:00
1 parent 7284a90a20
commit b338d94fa0
7 files changed
+53 -33

No files matched your search

+2 -8
View File
@@ -18768,14 +18768,8 @@ def pack_install_list(manifest: dict, files: list[dict], omitted: list[dict],
def pack_manifest(plat: str, install_list: dict, rows: list[dict],
targets: dict | None) -> bytes:
"""manifest.json of a pack made here, as --from-pack reads it."""
entries = [*install_list.get("files", []), *install_list.get("omitted_files", [])]
records = {"systems"} if any("systems" in entry for entry in entries) else set()
if any(copy.get("cores") for entry in install_list.get("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")
records = recorded_axes(install_list.get("files", []),
install_list.get("omitted_files", []))
data: dict = {"platform": plat, "files": rows}
for key in ("system_titles", "system_names"):
if install_list.get(key):