MCPcopy Create free account
hub / github.com/apache/burr / cmd_all

Function cmd_all

scripts/verify_apache_artifacts.py:589–614  ·  view source on GitHub ↗

Verify everything: signatures, checksums, and licenses.

(args)

Source from the content-addressed store, hash-verified

587
588
589def cmd_all(args) -> bool:
590 """Verify everything: signatures, checksums, and licenses."""
591 _print_section("Complete Apache Artifacts Verification")
592
593 # Step 1: Verify signatures
594 print("\n[1/2] Verifying signatures and checksums...")
595 signatures_ok = verify_signatures(args.artifacts_dir)
596
597 # Step 2: Verify licenses
598 if args.rat_jar:
599 print("\n[2/2] Verifying licenses with Apache RAT...")
600 licenses_ok = verify_licenses(args.artifacts_dir, args.rat_jar, args.report_only)
601 else:
602 print("\n[2/2] Skipping license verification (no --rat-jar provided)")
603 licenses_ok = True
604
605 # Summary
606 _print_section("Verification Summary")
607
608 print("Results:")
609 print(f" Signatures & Checksums: {'✅ PASS' if signatures_ok else '❌ FAIL'}")
610 print(
611 f" License Compliance: {'✅ PASS' if licenses_ok else '❌ FAIL' if args.rat_jar else '⊘ SKIPPED'}"
612 )
613
614 return signatures_ok and licenses_ok
615
616
617def cmd_list_contents(args) -> None:

Callers 1

mainFunction · 0.70

Calls 3

verify_signaturesFunction · 0.85
verify_licensesFunction · 0.85
_print_sectionFunction · 0.70

Tested by

no test coverage detected