shutils/pkgtarget.sh: fix check for noarch

This commit is contained in:
maxice8 2019-02-15 12:08:10 -02:00 committed by maxice8
parent 7c4f62a513
commit c8129e7d38
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
check_pkg_arch() { check_pkg_arch() {
local cross="$1" _arch f match nonegation local cross="$1" _arch f match nonegation
if [ -n "$archs" -o "${archs// /}" != "noarch" ]; then if [ -n "$archs" -a "${archs// /}" != "noarch" ]; then
if [ -n "$cross" ]; then if [ -n "$cross" ]; then
_arch="$XBPS_TARGET_MACHINE" _arch="$XBPS_TARGET_MACHINE"
elif [ -n "$XBPS_ARCH" ]; then elif [ -n "$XBPS_ARCH" ]; then