xbps-src: fix do_clean

It has to be run before remove_pkg_statedir.

Also, run remove_pkg_autodeps as well.
This commit is contained in:
gt7-void 2020-06-17 18:22:23 -03:00 committed by Piotr
parent c2a7858c5e
commit 795429f1a4

View File

@ -753,11 +753,12 @@ case "$XBPS_TARGET" in
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
chroot_handler $XBPS_TARGET $XBPS_TARGET_PKG || exit $?
else
remove_pkg_wrksrc
remove_pkg_statedir
if declare -f do_clean >/dev/null; then
run_func do_clean
fi
remove_pkg_autodeps
remove_pkg_wrksrc
remove_pkg_statedir
fi
remove_pkg $XBPS_CROSS_BUILD
fi