Commit e03dfc46 authored by Aaron Griffin's avatar Aaron Griffin
Browse files

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: default avatarAaron Griffin <aaronmgriffin@gmail.com>
parent 5dbb964d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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