From 67c854fc64ebdd27cb0140a7d9218b04d4b814f9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 10 Nov 2014 11:57:46 +0100 Subject: [PATCH] xbps-src: chroot: do nothing if we are already in the chroot. --- common/xbps-src/shutils/chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...