fix issue with build_package()'s return code getting swallowed up in a pipe

This commit is contained in:
slakmagik 2009-05-23 17:57:19 +00:00
parent bee4c7c760
commit 7a67084d2b

View File

@ -2901,8 +2901,9 @@ process_queue() {
continue
fi
if [[ -f $SBOPKGTMP/sbopkg_build.lck ]]; then
build_package $PKGPATH $PKGBUILD 2>&1 | tee $TMPBUILDLOG ||
break
set -o pipefail
build_package $PKGPATH $PKGBUILD 2>&1 | tee $TMPBUILDLOG || break
set +o pipefail
echo "Done building package for $PKGBUILD."
cd $SB_OUTPUT
NEWPACKAGE=$(ls -1t *.t?z | head -n1)