summaryrefslogtreecommitdiff
path: root/packaging/RHEL-CTDB
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-08-12 23:46:50 +0200
committerMichael Adam <obnox@samba.org>2008-08-13 11:54:14 +0200
commitcde6c647af2a223aaf18a5420a9d4b0ce4c23630 (patch)
tree63b1b55f8a739de13df6c3cc29f28de8afe2d2ae /packaging/RHEL-CTDB
parent8644db5787358fcf239f1693333e69d3544a2929 (diff)
downloadsamba-cde6c647af2a223aaf18a5420a9d4b0ce4c23630.tar.gz
packaging(RHEL-CTDB): check for success of x86_64 build before building i386
Michael (This used to be commit 3102582f0232359069577174b2faea37e5489014)
Diffstat (limited to 'packaging/RHEL-CTDB')
-rwxr-xr-xpackaging/RHEL-CTDB/makerpms.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh
index 6b407e0ebd8..8a0345bbeb8 100755
--- a/packaging/RHEL-CTDB/makerpms.sh
+++ b/packaging/RHEL-CTDB/makerpms.sh
@@ -77,13 +77,13 @@ popd
echo "$(basename $0): Getting Ready to build release package"
pushd ${SPECDIR}
${RPM} -ba $EXTRA_OPTIONS $SPECFILE
-[ `arch` = "x86_64" ] && {
+if [ "x$?" = "x0" ] && [ `arch` = "x86_64" ]; then
echo "Building 32 bit winbind libs"
# hi ho, a hacking we will go ...
ln -sf /lib/libcom_err.so.2 /lib/libcom_err.so
ln -sf /lib/libuuid.so.1 /lib/libuuid.so
${RPM} -ba --rebuild --target=i386 $SPECFILE
-}
+fi
popd