summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-09-05 08:25:15 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-09-05 08:25:15 +0000
commit7bda0ceadb8435982e2402bae05eb77fb167570e (patch)
treef4d48c4e00bae0a65b8eff8c5b64538670447241
parentc6b0de32a2cc58e6520e10c57f7a271753a9029c (diff)
downloadabuild-7bda0ceadb8435982e2402bae05eb77fb167570e.tar.bz2
abuild-7bda0ceadb8435982e2402bae05eb77fb167570e.tar.xz
abuild: make sure cleanup returns false in native compiling
-rwxr-xr-xabuild.in7
1 files 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