fix: guard target lists with board images

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 21:46:27 +01:00
1 parent 2b5955e8a5
commit 7222207f3b
3 files changed
+44 -1

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@ from collections.abc import Iterator
from pathlib import Path
from core.artifacts import artifact_lock, repository_output_lock
from packs.targets import is_target_list
def json_artifact_kind(path: Path) -> str | None:
@@ -23,7 +24,7 @@ def json_artifact_kind(path: Path) -> str | None:
return None
if "manifest_version" in data:
return "manifest"
if all(v is None or isinstance(v, list) for v in data.values()):
if is_target_list(data):
return "targets"
return None