From c8143f021260a0d38c932c2f62d08164edb25301 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 29 Sep 2019 20:36:50 +0200 Subject: [PATCH] CI: framework versions test: handle hotfixes (!639) Cut off the hotfix-version (fourth number) from the version strings before comparing them, to fix invalid errors like: [14:57:00] Reference pkgver: 5.16.90 (from 'khotkeys') [14:57:00] ERROR: plasma-workspace has version 5.16.90.1 --- .gitlab-ci/testcases/test_aports_framework_versions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci/testcases/test_aports_framework_versions.py b/.gitlab-ci/testcases/test_aports_framework_versions.py index 67f7a4e52..29db09e03 100644 --- a/.gitlab-ci/testcases/test_aports_framework_versions.py +++ b/.gitlab-ci/testcases/test_aports_framework_versions.py @@ -62,6 +62,10 @@ def get_categorized_packages(args): "https://www.qt.io/developers/"]: category = "qt" + # Remove hotfix number (i.e. 5.16.90.1 becomes 5.16.90) + if category in ["kde", "plasma"]: + pkgver = ".".join(pkgver.split(".")[0:3]) + # Save result if category not in ret: ret[category] = {}