From d7ec2e46dc10f2d7a594a26d51a214b6b8b87fd9 Mon Sep 17 00:00:00 2001 From: Anton Bambura Date: Wed, 11 Jan 2023 19:32:11 +0200 Subject: [PATCH] CI: test_device: fix versioned depends for postmarketos-base (MR 3791) [ci:skip-build]: already built successfully in CI --- .ci/testcases/test_device.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.ci/testcases/test_device.py b/.ci/testcases/test_device.py index e486d87e7..20aca4e73 100644 --- a/.ci/testcases/test_device.py +++ b/.ci/testcases/test_device.py @@ -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)