diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 07e3eb6f75f..85d9401fca7 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -155,7 +155,7 @@ chroot_sync_repos() { chroot_handler() { local action="$1" pkg="$2" rv=0 arg= _envargs= _chargs= - if [ -z "$CHROOT_READY" ]; then + if [ -n "$IN_CHROOT" -o -z "$CHROOT_READY" ]; then return 0 fi # Debian uses /run/shm instead...