xbps-src: remove a pkg thru the chroot handler to fix some bugs in pre/post_remove funcs.

This commit is contained in:
Juan RP 2011-06-16 12:21:12 +02:00
parent 88d2739d94
commit c912ce0eef
3 changed files with 9 additions and 8 deletions

View file

@ -412,7 +412,12 @@ remove)
_pkgname=$(basename_cwd)
fi
setup_tmpl ${_pkgname}
remove_pkg
if [ -z "$in_chroot" -a -z "$base_chroot" ]; then
. $XBPS_SHUTILSDIR/chroot.sh
xbps_chroot_handler $target ${_pkgname} $dontrm_builddir
else
remove_pkg
fi
;;
stow)
stow_flag=yes