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.
This commit is contained in:
Juan RP 2015-07-12 10:13:43 +02:00
parent d24e75514f
commit 0ce38c4c74

View file

@ -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