diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index 9753f83069..abde2c2c41 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -447,7 +447,10 @@ setup_pkg() { export XBPS_STATEDIR="${XBPS_BUILDDIR}/.xbps-${sourcepkg}" export XBPS_WRAPPERDIR="${XBPS_STATEDIR}/wrappers" - mkdir -p $XBPS_WRAPPERDIR + + if [ -z "$CHROOT_READY" -o -n "$IN_CHROOT" ]; then + mkdir -p $XBPS_WRAPPERDIR + fi source_file $XBPS_COMMONDIR/environment/build-style/${build_style}.sh }