From d982c558f27766f7d52bca3d8de8df234cf304ae Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 10 Nov 2014 12:30:07 +0100 Subject: [PATCH] xbps-src: correct test behaviour for build-profiles. --- 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 87983e3bb26..ca6e28f1082 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -331,7 +331,7 @@ setup_pkg() { dbgflags="-g" fi - if [ -z "$XBPS_CFLAGS" -a -z "$XBPS_CXXFLAGS" -a -z "$CHROOT_READY" ]; then + if [ -z "$XBPS_CFLAGS" -a -z "$XBPS_CXXFLAGS" -a -n "$CHROOT_READY" ]; then if [ -s ${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh ]; then . ${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh fi