mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-18 06:42:33 -05:00
refactor: split pack check into baseline and cores with clear counts
This commit is contained in:
@@ -1262,7 +1262,8 @@ def verify_pack_against_platform(
|
|||||||
checked = baseline_checked + core_checked
|
checked = baseline_checked + core_checked
|
||||||
present = baseline_present + core_present
|
present = baseline_present + core_present
|
||||||
|
|
||||||
return len(errors) == 0, checked, present, errors
|
return (len(errors) == 0, checked, present, errors,
|
||||||
|
baseline_checked, baseline_present, core_checked, core_present)
|
||||||
|
|
||||||
|
|
||||||
def verify_and_finalize_packs(output_dir: str, db: dict,
|
def verify_and_finalize_packs(output_dir: str, db: dict,
|
||||||
@@ -1308,13 +1309,15 @@ def verify_and_finalize_packs(output_dir: str, db: dict,
|
|||||||
# Stage 2: platform conformance (extract + verify)
|
# Stage 2: platform conformance (extract + verify)
|
||||||
platforms = pack_to_platform.get(name, [])
|
platforms = pack_to_platform.get(name, [])
|
||||||
for pname in platforms:
|
for pname in platforms:
|
||||||
p_ok, total, matched, p_errors = verify_pack_against_platform(
|
(p_ok, total, matched, p_errors,
|
||||||
zip_path, pname, platforms_dir, db=db,
|
bl_checked, bl_present, core_checked, core_present) = \
|
||||||
)
|
verify_pack_against_platform(
|
||||||
if p_ok:
|
zip_path, pname, platforms_dir, db=db,
|
||||||
print(f" platform {pname}: {matched}/{total} OK")
|
)
|
||||||
else:
|
status = "OK" if p_ok else "FAILED"
|
||||||
print(f" platform {pname}: {matched}/{total} FAILED")
|
print(f" platform {pname}: {bl_present}/{bl_checked} baseline, "
|
||||||
|
f"{core_present}/{core_checked} cores, {status}")
|
||||||
|
if not p_ok:
|
||||||
for err in p_errors:
|
for err in p_errors:
|
||||||
print(f" {err}")
|
print(f" {err}")
|
||||||
all_ok = False
|
all_ok = False
|
||||||
|
|||||||
Reference in New Issue
Block a user