fix: never drop a held file for a missing region

Region filtering ranked every declared file, held or not, so a request
answered only by a missing file dropped the held fallback and emptied
the slot. Only held files now decide what gives way; the missing better
match stays reported.
This commit is contained in:
Abdessamad Derraz committed 2026-10-17 18:31:56 +02:00
1 parent 5cfcb9e746
commit e6c29452f9
6 files changed
+69 -8

No files matched your search

+3 -1
View File
@@ -582,6 +582,7 @@ def verify_pack_against_platform(
region_index = region_mod.platform_region_index(
config, emu_profiles, target_cores
)
held: set[str] = set()
region_groups, _extra_dests = platform_region_groups(
config,
expected_systems,
@@ -590,9 +591,10 @@ def verify_pack_against_platform(
base_dest,
emu_profiles,
target_cores=target_cores,
held_out=held,
)
region_drops = region_mod.resolve_region_drops(
region_groups, region_index, regions
region_groups, region_index, regions, held
)
with zipfile.ZipFile(zip_path, "r") as zf: