]> TLD Linux GIT Repositories - packages/rpm-build-tools.git/commitdiff
- cosmetics
authorMarcin Krol <hawk@tld-linux.org>
Sat, 20 Mar 2021 20:59:51 +0000 (21:59 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 20 Mar 2021 20:59:51 +0000 (21:59 +0100)
builder.sh

index 79d7219ca7fa3f20bdbaab2f0f5d91439eb39f9a..a5b8edc233598c0ddd26de77c09cb6baa916ba6e 100755 (executable)
@@ -891,9 +891,9 @@ Exit_error() {
                        remove_build_requires
                        echo >&2 "Error: couldn't get out package name/version/release from spec file."
                        exit 6 ;;
-               "err_tag_exists" )
+               "err_pkgrev_exists" )
                        remove_build_requires
-                       echo >&2 "Tag ${2} already exists"
+                       echo >&2 "Error: package revision ${2} already exists"
                        exit 9 ;;
                "err_fract_rel" )
                        remove_build_requires
@@ -1505,7 +1505,7 @@ set_pkgrev() {
        rm $_tmp 2>/dev/null
        [ "$(get_pkgrev "$_tag")" = "$CVSTAG" ] && return 0
        echo "$result" | grep -q -E "^OK$" && return 0
-       echo "$result" | grep -q -E "^EXISTS$" && Exit_error err_tag_exists "$_tag"
+       echo "$result" | grep -q -E "^EXISTS$" && Exit_error err_pkgrev_exists "$_tag"
        Exit_error err_pkgrev_set
 }