xbps-src: redo only_for_archs check.

This commit is contained in:
Juan RP 2011-11-13 10:06:22 +01:00
parent 8b2a4e0646
commit 3289d5699d
1 changed files with 4 additions and 2 deletions

View File

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