From: Marcin Krol Date: Sat, 20 Mar 2021 20:59:51 +0000 (+0100) Subject: - cosmetics X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=58190efb023a02475ced88a938bcc9fe0eb3a313;p=packages%2Frpm-build-tools.git - cosmetics --- diff --git a/builder.sh b/builder.sh index 79d7219..a5b8edc 100755 --- a/builder.sh +++ b/builder.sh @@ -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 }