fix: read archive members under the collection

This commit is contained in:
Abdessamad Derraz committed 2026-11-24 03:38:59 +01:00
1 parent 27dc26bd80
commit 95cbb5af1d
28 files changed
+104 -49

No files matched your search

+4 -1
View File
@@ -2,6 +2,9 @@
from __future__ import annotations
from pathlib import Path
from core.paths import BIOS_DIR
from model.dbpaths import collection_root
from model.registry import load_data_dir_registry
@@ -29,5 +32,5 @@ def comparison_inputs(
db = load_database(db_path)
groups = group_identical_platforms(list_registered_platforms(platforms_dir), platforms_dir)
return (db, build_zip_contents_index(db), load_emulator_profiles(emulators_dir),
return (db, build_zip_contents_index(db, collection_root(Path(BIOS_DIR))), load_emulator_profiles(emulators_dir),
load_data_dir_registry(platforms_dir), groups)
+4 -2
View File
@@ -2,10 +2,12 @@
from __future__ import annotations
from pathlib import Path
from model.dbpaths import collection_root
import contextlib
import io
from core.paths import DB_FILE, EMULATORS_DIR, PLATFORMS_DIR
from core.paths import BIOS_DIR, DB_FILE, EMULATORS_DIR, PLATFORMS_DIR
from model.profiles import reads_own_files
from orchestrate.compare import set_difference_lines
from orchestrate.labels import STEP_LABELS, step_title
@@ -66,7 +68,7 @@ def check_emulator_packs(
print(f"\n--- {step_title(STEP_LABELS['consistency'])}, emulator packs ---")
db = load_database(db_path)
zip_contents = build_zip_contents_index(db)
zip_contents = build_zip_contents_index(db, collection_root(Path(BIOS_DIR)))
profiles = load_emulator_profiles(emulators_dir, skip_aliases=False)
def compare(names: list[str], standalone: bool, label: str, **narrowing: object) -> bool | None: