From: Jan Palus Date: Sun, 22 Nov 2020 10:50:43 +0000 (+0100) Subject: builder: unbreak rpm5 detection X-Git-Tag: auto/th/rpm-build-tools-4.9-8~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm-build-tools.git;a=commitdiff_plain;h=30e78ca0b942bf5e64e1418d9f2f29129854bafd builder: unbreak rpm5 detection --- diff --git a/builder.sh b/builder.sh index ed2184b..b657e0d 100755 --- a/builder.sh +++ b/builder.sh @@ -480,7 +480,7 @@ is_rpmorg() { v=$(rpm --version 2>&1) v=${v#RPM version } # rpm 4 - v=${v#rpm (RPM) } # rpm 5 + v=${v#rpm \(RPM\) } # rpm 5 case "$v" in 4.5|5.*) @@ -489,6 +489,9 @@ is_rpmorg() { 4.*) return 0; ;; + *) + echo "ERROR: unsupported RPM version $v" >&2 + exit 1 esac }