ci: simplify pmb usage

pmb.helpers.package.check_arch with binary=False is a complex way of
fetching the APKBUILD and checking it against
pmb.helpers.pmaports.check_arches. Since we already have the APKBUILD,
just check the arches directly.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8854>
This commit is contained in:
Pablo Correa Gómez
2026-06-21 14:39:53 +00:00
parent 8b5141c241
commit 3c159f1682
+1 -1
View File
@@ -24,7 +24,7 @@ def test_aports_ui():
apkbuild = pmb.parse.apkbuild(path)
# Skip if arch isn't enabled
if not pmb.helpers.package.check_arch(apkbuild["pkgname"], arch, False):
if not pmb.helpers.pmaports.check_arches(apkbuild["arch"], arch):
continue
for package in apkbuild["_pmb_recommends"]: