mirror of
https://github.com/Abdess/retrobios.git
synced 2026-05-02 10:27:44 +00:00
feat: source-aware pack verification
This commit is contained in:
parent
47a68c1a11
commit
85cc23398a
1 changed files with 16 additions and 0 deletions
|
|
@ -2367,6 +2367,19 @@ def _run_verify_packs(args):
|
|||
print(f" {platform_name}: SKIP (no pack in {args.output_dir})")
|
||||
continue
|
||||
|
||||
# Detect source from ZIP filename
|
||||
pack_source = "full"
|
||||
if zip_path:
|
||||
bn = os.path.basename(zip_path)
|
||||
if "_Platform_" in bn:
|
||||
pack_source = "platform"
|
||||
elif "_Truth_" in bn:
|
||||
pack_source = "truth"
|
||||
|
||||
if pack_source == "truth":
|
||||
print(f" {platform_name}: OK (truth pack, verified by hash integrity)")
|
||||
continue
|
||||
|
||||
extract_dir = os.path.join("tmp", "verify_packs", platform_name)
|
||||
os.makedirs(extract_dir, exist_ok=True)
|
||||
try:
|
||||
|
|
@ -3528,6 +3541,9 @@ def verify_and_finalize_packs(
|
|||
# Skipped for filtered/split/custom packs (intentionally partial)
|
||||
if skip_conformance:
|
||||
continue
|
||||
# Skip conformance for non-full source variants
|
||||
if "_Platform_" in name or "_Truth_" in name:
|
||||
continue
|
||||
platforms = pack_to_platform.get(name, [])
|
||||
for pname in platforms:
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue