diff --git a/xbps-src b/xbps-src index ad999439d3a..20c12336439 100755 --- a/xbps-src +++ b/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