mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 20:38:52 -06:00
fix: guard target lists with board images
This commit is contained in:
1 parent
2b5955e8a5
commit
7222207f3b
3 files changed
+44
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user