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

ci: lib: enable systemd if changed pkgs are in systemd repo

parent 606d69fc
No related branches found
No related tags found
No related merge requests found
Pipeline #203829 passed
......@@ -68,6 +68,7 @@ if __name__ == "__main__":
# Filter out packages that can't be built for given arch
# (Iterate over copy of packages, because we modify it in this loop)
systemd = False
for package in packages.copy():
apkbuild_path = pmb.helpers.pmaports.find(package)
apkbuild = pmb.parse._apkbuild.apkbuild(pathlib.Path(apkbuild_path, "APKBUILD"))
......@@ -76,6 +77,12 @@ if __name__ == "__main__":
print(f"{package}: not enabled for {arch}, skipping")
packages.remove(package)
if "extra-repos/systemd" in apkbuild_path:
systemd = True
if systemd:
common.run_pmbootstrap(["config", "systemd", "always"])
# No packages: skip build
if len(packages) == 0:
print(f"no packages changed, which can be built for {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