From 6fcc19d198acc668e235cb0e153449bca67e5f43 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 24 Jan 2026 21:50:48 +0100 Subject: [PATCH] Fix version for debian package in CI --- tools/gen_debian_changelog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/gen_debian_changelog.py b/tools/gen_debian_changelog.py index 30a72059..57aa1683 100755 --- a/tools/gen_debian_changelog.py +++ b/tools/gen_debian_changelog.py @@ -52,7 +52,10 @@ def main(): if args.nightly: version = subprocess.check_output(["git", "describe", "--tags", "--always"]).decode().strip() - version = version[1:] # remove the initial "v" + if version[0] == 'v': + version = version[1:] # remove the initial "v" + else: + version = '0-' + version write_entry( out=args.out, version=version,