Commit 97d924df authored by Timo Teräs's avatar Timo Teräs

abuild: support arch="all !armhf"

this allows blacklisting architectures instead of just
whitelisting them. useful when more architectures comeabout.
parent 670fc1ae
...@@ -1607,7 +1607,16 @@ srcpkg() { ...@@ -1607,7 +1607,16 @@ srcpkg() {
# return true if arch is supported or noarch # return true if arch is supported or noarch
check_arch() { check_arch() {
list_has $CARCH $arch || [ "$arch" = "noarch" ] || [ "$arch" = "all" ] local ret=1
local i
for i in $arch; do
case $i in
all | noarch) ret=0 ;;
"$CARCH") ret=0 ;;
"!$CARCH") return 1 ;;
esac
done
return $ret
} }
# return true if libc is not masked in options # return true if libc is not masked in options
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment