summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-06-28 18:33:12 +0200
committerThomas Haller <thaller@redhat.com>2020-06-28 18:35:03 +0200
commit7f93fd8e7b4b6b3193b5397af79e3bf08b1fd981 (patch)
treea31c7b1da72c001915c85e0313de6ea978a3ae82
parent8e9e6fd02420e9406d6327a544f32cdb03227352 (diff)
release: fix RC_VERSION for release script
The release candidate -rc1 has version "1.y.90", -rc2 has "1.y.91", and so on. Fix the script.
-rwxr-xr-xcontrib/fedora/rpm/release.sh2
1 files changed, 1 insertions, 1 deletions
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
;;