xbps-src: respect XBPS_ARCH as environment variable
This commit is contained in:
parent
04f489e839
commit
fc7015fd7e
2
xbps-src
2
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
|
||||
|
|
Loading…
Reference in New Issue