xbps-src: fix 'clean' target to remove autodeps if IN_CHROOT is set.

This commit is contained in:
Juan RP 2014-11-17 17:32:30 +01:00
parent 13ce828c7e
commit 6fdd540de5

View File

@ -557,7 +557,12 @@ case "$XBPS_TARGET" in
;;
clean)
if [ -z "$XBPS_TARGET_PKG" ]; then
chroot_handler remove-autodeps
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
chroot_handler remove-autodeps
else
pkgver=xbps-src
remove_pkg_autodeps
fi
msg_normal "xbps-src: cleaning up masterdir...\n"
rm -rf $XBPS_MASTERDIR/builddir/* $XBPS_MASTERDIR/destdir/*
else
@ -580,7 +585,7 @@ case "$XBPS_TARGET" in
remove_pkg_autodeps
fi
;;
fetch|extract|build|configure|install|install-destdir|pkg|build-pkg)
fetch|extract|build|configure|install|pkg)
BEGIN_INSTALL=1
read_pkg
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then