xbps-src: respect XBPS_ARCH as environment variable

This commit is contained in:
Toyam Cox 2017-08-07 00:36:31 -04:00
parent 04f489e839
commit fc7015fd7e

View file

@ -549,7 +549,7 @@ if [ -f $XBPS_MASTERDIR/.xbps_chroot_init ]; then
fi
if [ -z "$XBPS_REINIT" -a -s $XBPS_MASTERDIR/.xbps_chroot_init ]; then
export XBPS_ARCH=$(cat $XBPS_MASTERDIR/.xbps_chroot_init)
export XBPS_ARCH=${XBPS_ARCH:-$(cat $XBPS_MASTERDIR/.xbps_chroot_init)}
if [[ $XBPS_MACHINE == x86_64* ]] && [[ $XBPS_ARCH == i686* ]]; then
# reconfigure pkgs via linux32
linux32 xbps-reconfigure -r ${XBPS_MASTERDIR} -a &>/dev/null