From 3289d5699d953ec3fe8a0756add56c3154598788 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 13 Nov 2011 10:06:22 +0100 Subject: [PATCH] xbps-src: redo only_for_archs check. --- xbps-src/shutils/tmpl_funcs.sh.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xbps-src/shutils/tmpl_funcs.sh.in b/xbps-src/shutils/tmpl_funcs.sh.in index 4b85d0cf419..0dae9ae87db 100644 --- a/xbps-src/shutils/tmpl_funcs.sh.in +++ b/xbps-src/shutils/tmpl_funcs.sh.in @@ -290,10 +290,12 @@ prepare_tmpl() done for i in ${only_for_archs}; do - [ "$i" = "$XBPS_MACHINE" ] && found=si && break + [ "$i" != "$XBPS_MACHINE" ] && continue + found=1 + break done if [ -n "${only_for_archs}" -a -z "$found" ]; then - msg_normal "$pkgver: this package can only be built on ${only_for_archs}.\n" + msg_normal "$pkgname: this package can only be built on ${only_for_archs}.\n" return 0 fi