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>
This commit is contained in:
Aaron Griffin 2009-06-12 07:53:32 -07:00
parent 5dbb964d66
commit e03dfc4665
1 changed files with 1 additions and 0 deletions

View File

@ -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