mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 03:18:52 -06:00
chore: type the standalone layout check
This commit is contained in:
1 parent
07dd93604d
commit
62abea3ed4
1 file changed
+3
-1
@@ -754,11 +754,13 @@ def _semantic_install_checks(path: Path, manifest: dict) -> list[str]:
|
||||
return out
|
||||
|
||||
|
||||
def _semantic_standalone_checks(path: Path, layouts: dict) -> list[str]:
|
||||
def _semantic_standalone_checks(path: Path, layouts: object) -> list[str]:
|
||||
"""A standalone layout file goes with its platform's list: the list
|
||||
names the same builds, and each [dest, sha1] item takes its download
|
||||
from a copy of that list."""
|
||||
where = path.relative_to(ROOT)
|
||||
if not isinstance(layouts, dict):
|
||||
return [f"{where}: not an object"]
|
||||
plat = layouts.get("platform")
|
||||
if path.stem != plat:
|
||||
return [f"{where}: platform {plat} in a file named {path.stem}"]
|
||||
|
||||
Reference in new issue
Block a user