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:
parent
9a48b41a23
commit
3731ba09ea
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue