xbps-src: fix 'clean' and 'remove-autodeps' targets again.

Broke them in f35aa4cc19
This commit is contained in:
Juan RP 2019-02-02 18:16:18 +01:00 committed by Duncaen
parent 1fca15124a
commit 9bf179825f

View file

@ -686,7 +686,11 @@ case "$XBPS_TARGET" in
;; ;;
clean) clean)
if [ -z "$XBPS_TARGET_PKG" ]; then if [ -z "$XBPS_TARGET_PKG" ]; then
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
chroot_handler remove-autodeps chroot_handler remove-autodeps
else
remove_pkg_autodeps
fi
msg_normal "xbps-src: cleaning up masterdir...\n" msg_normal "xbps-src: cleaning up masterdir...\n"
chmod -R +wX $XBPS_MASTERDIR/builddir # Needed to remove Go Modules chmod -R +wX $XBPS_MASTERDIR/builddir # Needed to remove Go Modules
rm -rf $XBPS_MASTERDIR/builddir $XBPS_MASTERDIR/destdir rm -rf $XBPS_MASTERDIR/builddir $XBPS_MASTERDIR/destdir
@ -709,7 +713,11 @@ case "$XBPS_TARGET" in
consistency_check consistency_check
;; ;;
remove-autodeps) remove-autodeps)
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
chroot_handler remove-autodeps chroot_handler remove-autodeps
else
remove_pkg_autodeps
fi
;; ;;
fetch|extract|build|check|configure|install|pkg) fetch|extract|build|check|configure|install|pkg)
if [ "$XBPS_TARGET" = "check" ]; then if [ "$XBPS_TARGET" = "check" ]; then