summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-09-17 18:15:03 +0200
committerStefan Metzmacher <metze@samba.org>2012-09-18 04:17:22 +0200
commit914fc4f265ef9f538fc5077fe0257565b282bd24 (patch)
tree15af6bc503e1e4793bfd336eee440651eb66ab63 /packaging
parent77f281a6d16cd9e7a787de8d954846a840fb03b0 (diff)
downloadsamba-914fc4f265ef9f538fc5077fe0257565b282bd24.tar.gz
samba-914fc4f265ef9f538fc5077fe0257565b282bd24.tar.bz2
samba-914fc4f265ef9f538fc5077fe0257565b282bd24.zip
packaging/RHEL-CTDB: try harder to set $RPMVER
metze
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/RHEL-CTDB/makerpms.sh3
1 files changed, 3 insertions, 0 deletions
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"
##