Skip to content
Snippets Groups Projects
Verified Commit 284fd42c authored by Clayton Craft's avatar Clayton Craft :speech_balloon:
Browse files

ci: add test for validating pkgver for device packages (MR 4994)

parent ed377d97
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,13 @@ def check_versions(args, packages):
print(f"- {package}: {head} (HEAD) (new package)")
continue
# Check pkgver follows expected format for device packages
pkgver = head.rpartition('-r')[0]
if package.startswith('device-') and not pkgver.isdigit():
print(f" - {package}: invalid pkgver \"{pkgver}\""
"See: https://wiki.postmarketos.org/wiki/Packaging#device_packages_and_other_packages_without_sources")
error = True
# Compare head and upstream versions
result = pmb.parse.version.compare(head, upstream)
if result != 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment