fix: check targeted packs the way --all builds

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 12:29:40 +02:00
1 parent fc4451c59f
commit 0dc0813bcd
2 files changed
+44 -2

No files matched your search

+5 -2
View File
@@ -3413,12 +3413,15 @@ def _target_cores_for(
) -> set[str] | None:
"""Cores a target leaves available, or None when no target was asked for.
None means no narrowing, which is what an unfiltered pack expects.
None means no narrowing, which is what an unfiltered pack expects. Read
the way --all builds: a platform without a target file was packed
unnarrowed under the target's name, and checking that pack must not
raise where building it did not.
"""
if not target_name:
return None
cache, _kept = build_target_cores_cache(
[platform_name], target_name, platforms_dir
[platform_name], target_name, platforms_dir, is_all=True
)
return cache.get(platform_name)