From c7b458d07cc0bc59cd7ee4cfb435bb470ee12ede Mon Sep 17 00:00:00 2001 From: Samuel Verschelde Date: Wed, 24 Sep 2025 10:41:36 +0200 Subject: [PATCH] koji_build.py: fix XCP-ng release detection for test builds The current code assumes we're in a vX.Y-u- tag, but we can also do test builds in v8.3-lab. Signed-off-by: Samuel Verschelde --- scripts/koji/koji_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/koji/koji_build.py b/scripts/koji/koji_build.py index 1793c80..a0be861 100755 --- a/scripts/koji/koji_build.py +++ b/scripts/koji/koji_build.py @@ -109,7 +109,7 @@ def clean_old_branches(git_repo): subprocess.check_call(['git', 'push', '--delete', 'origin'] + old_branches) def xcpng_version(target): - xcpng_version_match = re.match(r'^v(\d+\.\d+)-u-\S+$', target) + xcpng_version_match = re.match(r'^v(\d+\.\d+)-\S+$', target) if xcpng_version_match is None: raise Exception(f"Can't find XCP-ng version in {target}") return xcpng_version_match.group(1)