release: fix RC_VERSION for release script

System Internals / NetworkManager - Thomas Haller [redhat.com] - 28 June 2020 16:35 UTC

The release candidate -rc1 has version "1.y.90", -rc2 has "1.y.91", and so on. Fix the script.

###

diff --git a/contrib/fedora/rpm/release.sh b/contrib/fedora/rpm/release.sh
index ae94bf479..b9c371a32 100755
--- a/contrib/fedora/rpm/release.sh
+++ b/contrib/fedora/rpm/release.sh
@@ -183,7 +183,7 @@ case "$RELEASE_MODE" in
[ "$CUR_BRANCH" == master ] || die "devel release can only be on master"
else
[ "${VERSION_ARR[2]}" -ge 90 ] || die "rc release must have a micro version larger than ${VERSION_ARR[0]}.90 but current version is $VERSION_STR"
- RC_VERSION="$((${VERSION_ARR[2]} - 90))"
+ RC_VERSION="$((${VERSION_ARR[2]} - 88))"
[ "$CUR_BRANCH" == "nm-${VERSION_ARR[0]}-$((${VERSION_ARR[1]} + 1))" ] || die "devel release can only be on \"nm-${VERSION_ARR[0]}-$((${VERSION_ARR[1]} + 1))\" branch"
fi
;;

7f93fd8e7 release: fix RC_VERSION for release script
contrib/fedora/rpm/release.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share