From e03dfc4665666e5a23945feeeb95a691d000a35f Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 12 Jun 2009 07:53:32 -0700 Subject: Cause chroot buildscript to exit with error If a build fails, exit the script with an error. This also prevents namcap from being called if there is no build package Signed-off-by: Aaron Griffin --- makechrootpkg | 1 + 1 file changed, 1 insertion(+) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index 8ff6024..13ba928 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -214,6 +214,7 @@ export LANG=$LOCALE cd /build export HOME=/build sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED +[ -f BUILD_FAILED ] && exit 1 which namcap 2>&1 >/dev/null && namcap *${PKGEXT} > /pkgdest/namcap.log exit 0 EOF -- cgit v1.2.3-70-g09d2