Skip to content
Snippets Groups Projects
Verified Commit aa77b065 authored by Clayton Craft's avatar Clayton Craft :speech_balloon:
Browse files

DO NOT MERGE: ci: use pmb.build.checksum

parent c76c29dd
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@ import pmb.core
import pmb.parse
import pmb.parse._apkbuild
import pmb.helpers.pmaports
# import pmb.helpers.frontend
import pmb.build.checksum
from pmb.core.context import get_context
......@@ -36,10 +38,16 @@ def verify_checksums(packages, arch):
print("no packages changed, not doing any checksums verification")
return
common.run_pmbootstrap(["build_init"])
common.run_pmbootstrap(["--details-to-stdout", "checksum", "--verify"] +
list(packages))
fail = False
for pkgname in packages:
try:
pmb.build.checksum.verify(pkgname)
except RuntimeError:
print(f"FAIL: {pkgname} checksum is incorrect")
fail = True
if fail:
sys.exit(1)
if __name__ == "__main__":
# Architecture to build for (as in build-{arch})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment