xbps-src: correct test behaviour for build-profiles.

This commit is contained in:
Juan RP 2014-11-10 12:30:07 +01:00
parent 1a1487ec82
commit d982c558f2
1 changed files with 1 additions and 1 deletions

View File

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