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

+3 -1
View File
@@ -2,6 +2,8 @@
from __future__ import annotations
from pathlib import Path
from model.dbpaths import collection_root
import os
from collections.abc import Callable
from dataclasses import dataclass, field
@@ -510,7 +512,7 @@ def verify_emulator(
# The member index only answers a zipped_file entry, and decompressing
# every archive took 23 of the 24 seconds of a run that had none.
zip_contents = (
build_zip_contents_index(db)
build_zip_contents_index(db, collection_root(Path(BIOS_DIR)))
if any(f.get("zipped_file") for _name, profile in selected
for f in profile.get("files") or [])
else {}