From c8129e7d38a5c5e848d655f35237a9f56668b31f Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 15 Feb 2019 12:08:10 -0200 Subject: [PATCH] shutils/pkgtarget.sh: fix check for noarch --- common/xbps-src/shutils/pkgtarget.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/pkgtarget.sh b/common/xbps-src/shutils/pkgtarget.sh index fcad8cb4d28..931816068dd 100644 --- a/common/xbps-src/shutils/pkgtarget.sh +++ b/common/xbps-src/shutils/pkgtarget.sh @@ -3,7 +3,7 @@ check_pkg_arch() { 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 _arch="$XBPS_TARGET_MACHINE" elif [ -n "$XBPS_ARCH" ]; then