From 914fc4f265ef9f538fc5077fe0257565b282bd24 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 17 Sep 2012 18:15:03 +0200 Subject: packaging/RHEL-CTDB: try harder to set $RPMVER metze --- packaging/RHEL-CTDB/makerpms.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packaging/RHEL-CTDB') diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh index d23d14ed8a..163b4aed30 100755 --- a/packaging/RHEL-CTDB/makerpms.sh +++ b/packaging/RHEL-CTDB/makerpms.sh @@ -27,6 +27,9 @@ TOPDIR=${DIRNAME}/../.. SPECFILE="samba.spec" RPMVER=`rpm --version | awk '{print $3}'` +test -z "$RPMVER" && { + RPMVER=`rpm --version | awk '{print $2}'` +} RPM="rpmbuild" ## -- cgit