From 795429f1a44cb0b84e3af1197c68b880aae86098 Mon Sep 17 00:00:00 2001 From: gt7-void Date: Wed, 17 Jun 2020 18:22:23 -0300 Subject: [PATCH] xbps-src: fix do_clean It has to be run before remove_pkg_statedir. Also, run remove_pkg_autodeps as well. --- xbps-src | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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