ci: add a testcase to make sure that alsa-ucm-conf provides are right

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9397>
This commit is contained in:
Pablo Correa Gómez
2026-08-24 12:16:54 +00:00
parent 408b42346c
commit 55ab83589e
+11
View File
@@ -42,6 +42,17 @@ def apkbuild_check_provides(path, apkbuild, version, pkgname, subpkgname=None):
# already replaces the variables, so we check against the inserted
# values here.
if not provide.endswith(f"={version}"):
# alsa-ucm-conf is a bit of a special case, since many packages
# provide it. And we need to make sure that the provide has a
# version below that of upstream
if provide.startswith("alsa-ucm-conf"):
if not provide.startswith("alsa-ucm-conf=0."):
error = f"error in alsa-ucm-conf provider for {path}\n."
error += "The alsa-ucm-conf provider version must start"
error += " with '0.' to not replace the normal upstream"
error += " alsa-ucm-conf in other devices"
ret.append(error)
continue
# Valid version strings, per the APKBUILD reference, are fine. This regex
# attempts to detect those.
pattern = (