.ci/lib: ignore pkgrel checks for linux-next

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6133
This commit is contained in:
Rudraksha Gupta 2025-05-03 19:50:12 -07:00
parent 35ded7a2d7
commit 341d88e8fe
No known key found for this signature in database
GPG key ID: 7A342565FF635F79

View file

@ -111,6 +111,14 @@ def check_versions(packages):
" HEAD against HEAD~1.")
commit = "HEAD~1"
# Exclude linux-next from pkgrel checks, as it is updated automatically.
#
# Without this, .ci/commits.sh complains about the following:
# ERROR: Modified package(s) don't have an increased version or a new
# package has a nonzero pkgrel!
if "linux-next" in packages:
packages.remove("linux-next")
for package in packages:
# Get versions, skip new packages
head = get_package_version(package, "HEAD")