From 55ab83589e96652ad2ac1faa8b5e693d5a782f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Fri, 21 Aug 2026 10:50:19 +0200 Subject: [PATCH] ci: add a testcase to make sure that alsa-ucm-conf provides are right MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pablo Correa Gómez Part-of: --- .ci/testcases/test_provides.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.ci/testcases/test_provides.py b/.ci/testcases/test_provides.py index ab759a866..b6f54548d 100644 --- a/.ci/testcases/test_provides.py +++ b/.ci/testcases/test_provides.py @@ -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 = (