mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 09:23:26 -05:00
fix: leave aliases out of the fileless audit
This commit is contained in:
1 parent
e660022628
commit
e75482777d
3 files changed
+13
No files matched your search
@@ -59,6 +59,9 @@ def audit(
|
||||
document = yaml_load(handle) or {}
|
||||
if document.get("files"):
|
||||
return None
|
||||
if document.get("type") == "alias":
|
||||
# The same binary under another name: its files are its target's.
|
||||
return None
|
||||
if str(document.get("exclusion_note") or "").strip():
|
||||
# Someone read this one and wrote down why nothing is declared. The
|
||||
# check exists to find the profiles nobody has answered yet; an
|
||||
@@ -91,6 +94,7 @@ def _settled_before_reading(document: dict) -> bool:
|
||||
a declared data directory (see audit)."""
|
||||
return bool(
|
||||
document.get("files")
|
||||
or document.get("type") == "alias"
|
||||
or str(document.get("exclusion_note") or "").strip()
|
||||
or document.get("data_directories")
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user