From fc7015fd7e74891bd200d0ed25624565f9bd16bf Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 7 Aug 2017 00:36:31 -0400 Subject: [PATCH] xbps-src: respect XBPS_ARCH as environment variable --- xbps-src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbps-src b/xbps-src index a7246f0fdb..b581daae14 100755 --- a/xbps-src +++ b/xbps-src @@ -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