mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 19:38:52 -06:00
refactor: move ten command helpers into packages
This commit is contained in:
1 parent
6d21a98342
commit
19681a3735
22 files changed
+218
-191
No files matched your search
@@ -319,3 +319,24 @@ def build_report(
|
||||
"out_of_scope": out_of_scope,
|
||||
}
|
||||
return report
|
||||
|
||||
|
||||
def print_missing(entry: dict, derived: dict[str, dict]) -> None:
|
||||
"""One missing dump, with what derives it, reads it and holds it."""
|
||||
label = entry.get("description") or entry["name"]
|
||||
source = derived.get(entry.get("sha1", ""))
|
||||
if source:
|
||||
print(f" DERIVABLE {entry['name']} ({label}): {source['transform']} "
|
||||
f"of {' + '.join(source['from'])}")
|
||||
else:
|
||||
print(f" MISSING {entry['name']} ({label}) sha1={entry.get('sha1')}")
|
||||
for need in entry.get("needed_by", []):
|
||||
print(f" needed by {need['emulator']} as {need['name']} "
|
||||
f"({'required' if need['required'] else 'optional'}, "
|
||||
f"matched by {need['by']})")
|
||||
for hit in entry.get("romsets", []):
|
||||
versions = hit["dats"][0] if len(hit["dats"]) == 1 else (
|
||||
f"{hit['dats'][0]} to {hit['dats'][-1]}"
|
||||
)
|
||||
print(f" in {hit['source']} {hit['archive']} as "
|
||||
f"{hit['member']} ({versions})")
|
||||
Reference in new issue
Block a user