xbps-src: get native arch via `xbps-uhelper arch` not `uname -m`.

This will detect void hosts running with musl.
This commit is contained in:
Juan RP 2015-05-14 11:22:19 +02:00
parent cb45c7cee4
commit ef097888c0
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ read_pkg() {
readonly XBPS_VERSION_REQ="0.44"
readonly XBPS_VERSION=$(xbps-uhelper -V|awk '{print $2}')
readonly XBPS_SRC_VERSION="113"
export XBPS_MACHINE=$(uname -m)
export XBPS_MACHINE=$(xbps-uhelper arch)
#
# main()