abuild: make sure cleanup returns false in native compiling

This commit is contained in:
Natanael Copa 2013-09-05 08:25:15 +00:00
parent c6b0de32a2
commit 7bda0ceadb

View File

@ -118,8 +118,11 @@ cleanup() {
if [ -z "$install_after" ] && [ -n "$uninstall_after" ]; then
msg "Uninstalling dependencies..."
$SUDO_APK del --quiet $apk_opt_wait $uninstall_after
[ "$CBUILD" != "$CHOST" -a -n "$CBUILDROOT" ] && \
$SUDO_APK del --root "$CBUILDROOT" --quiet $apk_opt_wait $uninstall_after
if [ "$CBUILD" != "$CHOST" -a -n "$CBUILDROOT" ]; then
$SUDO_APK del --root "$CBUILDROOT" \
--quiet $apk_opt_wait \
$uninstall_after
fi
fi
;;
esac