diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-07-07 11:39:03 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-07-07 12:04:06 +0300 |
commit | 97d924dfed7284b103f588f009d63ec5891ba347 (patch) | |
tree | ba560121f9f169c1cf10914ee09f7846d58bcbea | |
parent | 670fc1ae14eb4517cb971806a9608b22ef28ab39 (diff) | |
download | abuild-97d924dfed7284b103f588f009d63ec5891ba347.tar.gz abuild-97d924dfed7284b103f588f009d63ec5891ba347.tar.bz2 abuild-97d924dfed7284b103f588f009d63ec5891ba347.tar.xz abuild-97d924dfed7284b103f588f009d63ec5891ba347.zip |
abuild: support arch="all !armhf"
this allows blacklisting architectures instead of just
whitelisting them. useful when more architectures comeabout.
-rw-r--r-- | abuild.in | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1607,7 +1607,16 @@ srcpkg() { # return true if arch is supported or noarch 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 |