diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-05 08:25:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-05 08:25:15 +0000 |
commit | 7bda0ceadb8435982e2402bae05eb77fb167570e (patch) | |
tree | f4d48c4e00bae0a65b8eff8c5b64538670447241 /abuild.in | |
parent | c6b0de32a2cc58e6520e10c57f7a271753a9029c (diff) | |
download | abuild-7bda0ceadb8435982e2402bae05eb77fb167570e.tar.gz abuild-7bda0ceadb8435982e2402bae05eb77fb167570e.tar.bz2 abuild-7bda0ceadb8435982e2402bae05eb77fb167570e.tar.xz abuild-7bda0ceadb8435982e2402bae05eb77fb167570e.zip |
abuild: make sure cleanup returns false in native compiling
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |