ci: add test for validating pkgver for device packages (MR 4994)
This commit is contained in:
parent
ed377d97fa
commit
284fd42c0a
1 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,13 @@ def check_versions(args, packages):
|
||||||
print(f"- {package}: {head} (HEAD) (new package)")
|
print(f"- {package}: {head} (HEAD) (new package)")
|
||||||
continue
|
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
|
# Compare head and upstream versions
|
||||||
result = pmb.parse.version.compare(head, upstream)
|
result = pmb.parse.version.compare(head, upstream)
|
||||||
if result != 1:
|
if result != 1:
|
||||||
|
|
Loading…
Reference in a new issue