Skip to content
Snippets Groups Projects
Verified Commit 04c1456e authored by Alexey Minnekhanov's avatar Alexey Minnekhanov :electric_plug: Committed by Clayton Craft
Browse files

CI: check for enabled arch for extra-repos/systemd too (MR 6162)


This check is present for "normal" packages, duplicate it for
ones that are thrown into "retry build with systemd later" list.

We need to explicitly pass with_extra_repos="enabled" arg to
find() to avoid getting cached "package not found in repos" result.

Signed-off-by: default avatarAlexey Minnekhanov <alexeymin@postmarketos.org>
[ci:skip-build]: already built successfully in CI
parent 5d94bb2b
No related branches found
No related tags found
1 merge request!6162systemd/*: upgrade
Pipeline #215365 passed
......@@ -115,6 +115,15 @@ if __name__ == "__main__":
# To do this automatically, run 'pmbootstrap config auto_zap_misconfigured_chroots yes'.
common.run_pmbootstrap(["config", "auto_zap_misconfigured_chroots", "yes"])
# filter out packages that can't be built for arch
# (Iterate over copy of `systemd_pkgs`, because we modify it in this loop)
for package in systemd_pkgs.copy():
apkbuild_path = pmb.helpers.pmaports.find(package, True, True, with_extra_repos="enabled")
apkbuild = pmb.parse._apkbuild.apkbuild(pathlib.Path(apkbuild_path, "APKBUILD"))
if not pmb.helpers.pmaports.check_arches(apkbuild["arch"], arch):
print(f"(extra-repos/systemd) {package}: not enabled for {arch}, skipping")
systemd_pkgs.remove(package)
verify_only = common.commit_message_has_string("[ci:skip-build]")
if verify_only:
# [ci:skip-build]: verify checksums
......
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