CI: test_device: fix versioned depends for postmarketos-base (MR 3791)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Anton Bambura 2023-01-11 19:32:11 +02:00 committed by Oliver Smith
parent 85d192103c
commit d7ec2e46dc
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -38,7 +38,11 @@ def test_aports_device(args):
apkbuild = pmb.parse.apkbuild(path)
# Depends: Require "postmarketos-base"
if "postmarketos-base" not in apkbuild["depends"]:
depend_flag = False
for dependency in apkbuild["depends"]:
if "postmarketos-base" == dependency or "postmarketos-base>" in dependency:
depend_flag = True
if not depend_flag:
raise RuntimeError("Missing 'postmarketos-base' in depends of " +
path)