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
9
xbps-src
9
xbps-src
|
@ -557,7 +557,12 @@ case "$XBPS_TARGET" in
|
||||||
;;
|
;;
|
||||||
clean)
|
clean)
|
||||||
if [ -z "$XBPS_TARGET_PKG" ]; then
|
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"
|
msg_normal "xbps-src: cleaning up masterdir...\n"
|
||||||
rm -rf $XBPS_MASTERDIR/builddir/* $XBPS_MASTERDIR/destdir/*
|
rm -rf $XBPS_MASTERDIR/builddir/* $XBPS_MASTERDIR/destdir/*
|
||||||
else
|
else
|
||||||
|
@ -580,7 +585,7 @@ case "$XBPS_TARGET" in
|
||||||
remove_pkg_autodeps
|
remove_pkg_autodeps
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
fetch|extract|build|configure|install|install-destdir|pkg|build-pkg)
|
fetch|extract|build|configure|install|pkg)
|
||||||
BEGIN_INSTALL=1
|
BEGIN_INSTALL=1
|
||||||
read_pkg
|
read_pkg
|
||||||
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
|
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
|
||||||
|
|
Loading…
Reference in a new issue