From 5350c8dafba7fc78f9d7401b5c0e251bcf21278c Mon Sep 17 00:00:00 2001 From: Pietro Abate Date: Wed, 26 Feb 2025 08:59:37 +0100 Subject: [PATCH] packages: fix rpm version format --- scripts/packaging/build-rpm-local.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/packaging/build-rpm-local.sh b/scripts/packaging/build-rpm-local.sh index b676ee5003a3..022ded191520 100755 --- a/scripts/packaging/build-rpm-local.sh +++ b/scripts/packaging/build-rpm-local.sh @@ -16,7 +16,8 @@ gitlab_release_no_v= case "$RELEASETYPE" in ReleaseCandidate | TestReleaseCandidate | Release | TestRelease) - _VERSION=$VERSION + # rpm versions are more strict than debian versions + _VERSION=$(echo "${VERSION}" | tr -d '~' | tr '-' '_') _EPOCH="%{nil}" _CHANGELOG="New Release $VERSION / $CI_COMMIT_SHORT_SHA" ;; -- GitLab