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:
parent
c2a7858c5e
commit
795429f1a4
5
xbps-src
5
xbps-src
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue