From fe915c25fb83e8688f0aff646557b887653e5790 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Fri, 21 Jan 2022 19:24:50 +0900 Subject: [PATCH] buildbot: Don't increase version, only add release When automatically building unstable packages, buildbot increases the version and appends the UNIX time as release. However, the version should not be increased. This commit modifies buildbot so that it only appends the UNIX time as release number, when building from unstable branches. --- buildbot.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/buildbot.sh b/buildbot.sh index 2a5658f..debd8be 100755 --- a/buildbot.sh +++ b/buildbot.sh @@ -20,26 +20,15 @@ increase_version() { local verrel="$1" local version - local version_prefix - local version_suffix local unixtime version="${verrel%-*}" - version_prefix="${version%.*}" - version_suffix="${version##*.}" - - if ! is_digits "$version_suffix"; then - return 1 - fi - - (( version_suffix++ )) - if ! unixtime=$(date +"%s"); then return 1 fi - echo "$version_prefix.$version_suffix-$unixtime" + echo "$version-$unixtime" return 0 } -- 2.47.3