CI: test_aports_ui: don't take arches from binary (MR 1508)

Verify _pmb_recommends for architectures listed in the APKBUILD of
postmarketos-ui-* packages, not from their binary packages. Otherwise
disabling an architecture in a merge request will not be respected, as
the binary package still has the arch enabled.
This commit is contained in:
Oliver Smith
2020-08-28 12:28:05 +02:00
parent ae3ea00c88
commit cedd5331e5
+1 -1
View File
@@ -184,7 +184,7 @@ def test_aports_ui(args):
for path in glob.iglob(args.aports + "/main/postmarketos-ui-*/APKBUILD"):
apkbuild = pmb.parse.apkbuild(args, path)
# Skip if arch isn't enabled
if not pmb.helpers.package.check_arch(args, apkbuild["pkgname"], arch):
if not pmb.helpers.package.check_arch(args, apkbuild["pkgname"], arch, False):
continue
for package in apkbuild["_pmb_recommends"]: