xbps-src: redo only_for_archs check.
This commit is contained in:
parent
8b2a4e0646
commit
3289d5699d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue