Correctly detect musl host architecture

This resolves #106
This commit is contained in:
Michael Aldridge 2017-06-22 16:16:13 -07:00
parent 03b894370f
commit 79adf63842

View File

@ -319,7 +319,7 @@ XBPS_REPOSITORY="$XBPS_REPOSITORY --repository=http://repo.voidlinux.eu/current
ARCH=$(xbps-uhelper arch)
# Set defaults
: ${BASE_ARCH:=$(uname -m)}
: ${BASE_ARCH:=$(xbps-uhelper arch 2>/dev/null || uname -m)}
: ${XBPS_CACHEDIR:=-c $(pwd -P)/xbps-cachedir-${BASE_ARCH}}
: ${XBPS_HOST_CACHEDIR:=-c $(pwd -P)/xbps-cachedir-${ARCH}}
: ${KEYMAP:=us}