xbps-src: remove pkg statedir unless -C is set.

This commit is contained in:
Juan RP 2014-12-13 09:42:11 +01:00
parent cf072df0f7
commit 5929c2458a
2 changed files with 8 additions and 1 deletions

View file

@ -559,8 +559,8 @@ case "$XBPS_TARGET" in
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
chroot_handler $XBPS_TARGET $XBPS_TARGET_PKG || exit $?
else
[ -d $XBPS_STATEDIR ] && rm -rf $XBPS_STATEDIR
remove_pkg_wrksrc $wrksrc
remove_pkg_statedir
if declare -f do_clean >/dev/null; then
run_func do_clean
fi