From 7bda0ceadb8435982e2402bae05eb77fb167570e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 5 Sep 2013 08:25:15 +0000 Subject: [PATCH] abuild: make sure cleanup returns false in native compiling --- abuild.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/abuild.in b/abuild.in index c26e077..b70966d 100755 --- a/abuild.in +++ b/abuild.in @@ -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