CI: build_changed_aports: fix checksum for 0 pkgs (MR 1705)

When using '[ci:skip-build]' without any changed packages, do not
attempt to run "pmbootstrap checksum" without any package arguments.
This may happen, because CI in MRs runs across all patches in the MR,
but CI on branches (master, v20.05) only run on the last commit.

Prevents CI failures like this one:
9a48b41a23
This commit is contained in:
Oliver Smith 2020-11-11 14:48:19 +01:00 committed by Alexey Min
parent 9a48b41a23
commit 3731ba09ea
No known key found for this signature in database
GPG key ID: EBF5ECFFFEE34DED

View file

@ -27,6 +27,10 @@ def verify_checksums(packages, arch):
" not here.") " not here.")
return return
if len(packages) == 0:
print("no packages changed, not doing any checksums verification")
return
common.run_pmbootstrap(["build_init"]) common.run_pmbootstrap(["build_init"])
common.run_pmbootstrap(["--details-to-stdout", "checksum", "--verify"] + common.run_pmbootstrap(["--details-to-stdout", "checksum", "--verify"] +
list(packages)) list(packages))