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

Function cmd_verify

scripts/apache_release.py:885–907  ·  view source on GitHub ↗

Handle 'verify' subcommand.

(args)

Source from the content-addressed store, hash-verified

883
884
885def cmd_verify(args) -> bool:
886 """Handle 'verify' subcommand."""
887 _print_section(f"Verifying Artifacts - v{args.version}-RC{args.rc_num}")
888
889 artifacts = _collect_all_artifacts(args.version, args.artifacts_dir)
890
891 if not artifacts:
892 print(f"⚠️ No artifacts found in {args.artifacts_dir}")
893 return False
894
895 all_valid = True
896 for artifact in artifacts:
897 if artifact.endswith((".asc", ".sha512")):
898 continue # Skip signature/checksum files
899 if not _verify_artifact_complete(artifact):
900 all_valid = False
901
902 if all_valid:
903 print("✅ All artifacts verified successfully!")
904 else:
905 print("❌ Some artifacts failed verification")
906
907 return all_valid
908
909
910def cmd_all(args) -> bool:

Callers 1

mainFunction · 0.85

Calls 3

_collect_all_artifactsFunction · 0.85
_print_sectionFunction · 0.70

Tested by

no test coverage detected