mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 15:33:28 +00:00
abuild: make sure cleanup returns false in native compiling
This commit is contained in:
parent
c6b0de32a2
commit
7bda0ceadb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user