xbps-src: make -D remove only remove files in pkg's destdir.

This commit is contained in:
Juan RP 2011-07-06 11:27:57 +02:00
parent 08c2049d9f
commit 341432f1fb
3 changed files with 29 additions and 11 deletions

View file

@ -458,7 +458,8 @@ remove)
_pkgname=$(basename_cwd)
fi
setup_tmpl ${_pkgname}
if [ -z "$IN_CHROOT" -a -z "$bootstrap" ]; then
if [ -z "$IN_CHROOT" -a -z "$bootstrap" \
-a -z "$BOOTSTRAP_PKG_REBUILD" ]; then
. $XBPS_SHUTILSDIR/chroot.sh
xbps_chroot_handler $target ${_pkgname}
else