diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 9419702efdb..367836efa8f 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -198,7 +198,9 @@ chroot_handler() { fetch|extract|build|configure|install|install-destdir|pkg|build-pkg|bootstrap-update|chroot) chroot_prepare || return $? chroot_init || return $? - chroot_sync_repos || return $? + if [ -z "$XBPS_SKIP_REMOTEREPOS" ]; then + chroot_sync_repos || return $? + fi ;; esac