Commit 7bda0cea authored by Natanael Copa's avatar Natanael Copa

abuild: make sure cleanup returns false in native compiling

parent c6b0de32
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment