mirror of
https://github.com/xcp-ng/xcp.git
synced 2026-12-05 09:58:07 +00:00
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 <stormi-xcp@ylix.fr>
This commit is contained in:
1 parent
ef5283f4e9
commit
c7b458d07c
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user