feat: source-aware pack verification

This commit is contained in:
Abdessamad Derraz
2026-04-01 14:52:02 +02:00
parent 47a68c1a11
commit 85cc23398a

View File

@@ -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:
(