fix: refuse a target no platform has

With --all, an unknown --target skipped every platform that has targets and ran the others (BizHawk, MiSTer) unfiltered, so verify, slots and the pipeline exited 0 on a typo. A platform without targets is now left out like the rest, and a target no platform has is refused.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 03:27:41 +02:00
1 parent c7c2f260f3
commit 7edd438af1
3 files changed
+38 -10

No files matched your search

+11 -7
View File
@@ -4442,10 +4442,10 @@ def _target_cores_for(
"""
if not target_name:
return None
cache, _kept = build_target_cores_cache(
[platform_name], target_name, platforms_dir, is_all=True
)
return cache.get(platform_name)
try:
return load_target_config(platform_name, target_name, platforms_dir)
except (FileNotFoundError, ValueError):
return None
def _expected_pack_names(
@@ -4479,9 +4479,13 @@ def _expected_pack_names(
)
cache = None
if target_name:
cache, pool = build_target_cores_cache(
pool, target_name, platforms_dir, is_all=True
)
try:
cache, pool = build_target_cores_cache(
pool, target_name, platforms_dir, is_all=True
)
except ValueError:
# No platform has the target: no pack was built under it.
continue
for group, representative in group_identical_platforms(
pool, platforms_dir, cache
):