From d9943a330d8641ead0f926229211e5e3c9e6d13b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 8 Nov 2014 10:52:38 +0100 Subject: [PATCH] xbps-src: return early if masterdir is not ready for chroot ops. --- common/xbps-src/shutils/chroot.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 3e7a427794..07e3eb6f75 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -155,6 +155,9 @@ chroot_sync_repos() { chroot_handler() { local action="$1" pkg="$2" rv=0 arg= _envargs= _chargs= + if [ -z "$CHROOT_READY" ]; then + return 0 + fi # Debian uses /run/shm instead... if [ -d /run/shm ]; then mkdir -p ${XBPS_MASTERDIR}/run/shm