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

View file

@ -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