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
This commit is contained in:
Oliver Smith 2019-09-29 20:36:50 +02:00
parent bce5f4feec
commit c8143f0212
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -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] = {}