diff --git a/xbps-src b/xbps-src index 086a0fe212f..5e75926c5ad 100755 --- a/xbps-src +++ b/xbps-src @@ -689,12 +689,6 @@ fi check_build_requirements -if [ -z "$IN_CHROOT" ]; then - trap 'exit_func' INT TERM - if [ -n "$XBPS_DISTFILES_MIRROR" ]; then - setup_distfiles_mirror - fi -fi # # Read funcs from helpers # @@ -702,6 +696,13 @@ for f in ${XBPS_SHUTILSDIR}/*.sh; do [ -r "$f" ] && . $f done +if [ -z "$IN_CHROOT" ]; then + trap 'exit_func' INT TERM + if [ -n "$XBPS_DISTFILES_MIRROR" ]; then + setup_distfiles_mirror + fi +fi + reconfigure_base_chroot #