From 0ce38c4c7435a86d10566d2e64f8618884fa661c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 12 Jul 2015 10:13:43 +0200 Subject: [PATCH] xbps-src: make sure XBPS_WRAPPERDIR is only created in required cases. - When building a bootstrap pkg and the chroot is not ready (bootstrap). - When building a pkg within the chroot. --- common/xbps-src/shutils/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index 781d08e8b79..a0a60eac974 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -449,7 +449,7 @@ setup_pkg() { export XBPS_STATEDIR="${XBPS_BUILDDIR}/.xbps-${sourcepkg}" export XBPS_WRAPPERDIR="${XBPS_STATEDIR}/wrappers" - if [ -z "$CHROOT_READY" -o -n "$IN_CHROOT" ]; then + if [ -n "$bootstrap" -a -z "$CHROOT_READY" -o -n "$IN_CHROOT" ]; then mkdir -p $XBPS_WRAPPERDIR fi