diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-09-17 18:15:03 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-09-18 04:17:22 +0200 |
commit | 914fc4f265ef9f538fc5077fe0257565b282bd24 (patch) | |
tree | 15af6bc503e1e4793bfd336eee440651eb66ab63 /packaging | |
parent | 77f281a6d16cd9e7a787de8d954846a840fb03b0 (diff) | |
download | samba-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-x | packaging/RHEL-CTDB/makerpms.sh | 3 |
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" ## |