]> git.samba.org - kai/samba.git/commitdiff
packaging(RHEL-CTDB): check for success of x86_64 build before building i386
authorMichael Adam <obnox@samba.org>
Tue, 12 Aug 2008 21:46:50 +0000 (23:46 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:14 +0000 (11:54 +0200)
Michael
(This used to be commit 3102582f0232359069577174b2faea37e5489014)

packaging/RHEL-CTDB/makerpms.sh

index 6b407e0ebd8607141be090954cf73fc78a881916..8a0345bbeb8b983f371f94ad00739bb815b46ee2 100755 (executable)
@@ -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