xbps-src: fix 'clean' target to remove autodeps if IN_CHROOT is set.
This commit is contained in:
parent
13ce828c7e
commit
6fdd540de5
1 changed files with 7 additions and 2 deletions
7
xbps-src
7
xbps-src
|
@ -557,7 +557,12 @@ case "$XBPS_TARGET" in
|
|||
;;
|
||||
clean)
|
||||
if [ -z "$XBPS_TARGET_PKG" ]; then
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue