From: Matthias Kruk Date: Fri, 21 Jan 2022 10:24:50 +0000 (+0900) Subject: buildbot: Don't increase version, only add release X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=fe915c25fb83e8688f0aff646557b887653e5790;p=foundry 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. --- 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 }