summaryrefslogtreecommitdiff
path: root/makechrootpkg
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-06-12 07:53:32 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-06-12 07:53:32 -0700
commite03dfc4665666e5a23945feeeb95a691d000a35f (patch)
tree97564e464ad4ab5687faf987d55ae09eafe48927 /makechrootpkg
parent5dbb964d6614d7157fbedb27f7dff3c97482039a (diff)
downloaddevtools32-e03dfc4665666e5a23945feeeb95a691d000a35f.tar.xz
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 <aaronmgriffin@gmail.com>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg1
1 files changed, 1 insertions, 0 deletions
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