]> git.corax.cc Git - foundry/commitdiff
buildbot: Don't increase version, only add release
authorMatthias Kruk <m@m10k.eu>
Fri, 21 Jan 2022 10:24:50 +0000 (19:24 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 21 Jan 2022 10:24:50 +0000 (19:24 +0900)
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

index 2a5658f537ad0565abcef42196c1001e192c9053..debd8bedcd048f95c0523fa7f54f6858915d3185 100755 (executable)
@@ -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
 }