From: Michael Adam Date: Tue, 12 Aug 2008 21:46:50 +0000 (+0200) Subject: packaging(RHEL-CTDB): check for success of x86_64 build before building i386 X-Git-Tag: samba-3.3.0pre1~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3102582f0232359069577174b2faea37e5489014;p=thirdparty%2Fsamba.git packaging(RHEL-CTDB): check for success of x86_64 build before building i386 Michael --- 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