From 7a67084d2b5cb4a1e65548c60bda82b7b5c8eaf5 Mon Sep 17 00:00:00 2001 From: slakmagik Date: Sat, 23 May 2009 17:57:19 +0000 Subject: [PATCH] fix issue with build_package()'s return code getting swallowed up in a pipe --- src/usr/sbin/sbopkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 92670c0..6c98f4e 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -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)