fix: count undistributed split extras with the helper

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 04:43:49 +02:00
1 parent af357a2931
commit b2208d889e
1 file changed
+6 -12
+6 -12
View File
@@ -1713,19 +1713,13 @@ def generate_split_packs(
results.append(zip_path) results.append(zip_path)
# Warn about extras that couldn't be distributed (emulators without systems: field) # Warn about extras that couldn't be distributed (emulators without systems: field)
all_groups_match = set() distributed = {
for group_system_ids in groups.values(): id(fe)
group_norm = {_norm_system_id(s) for s in group_system_ids} for fe in _extras_for_systems(
all_groups_match |= set(group_system_ids) | group_norm all_extras, [s for ids in groups.values() for s in ids]
undistributed = [
fe
for fe in all_extras
if not (
set(_extra_system_ids(fe))
| {_norm_system_id(s) for s in _extra_system_ids(fe)}
) )
& all_groups_match }
] undistributed = [fe for fe in all_extras if id(fe) not in distributed]
if undistributed: if undistributed:
emus = sorted({fe.get("source_emulator", "?") for fe in undistributed}) emus = sorted({fe.get("source_emulator", "?") for fe in undistributed})
print( print(