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:
@@ -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"]:
|
||||
|
||||
Reference in New Issue
Block a user