diff options
-rw-r--r-- | lib/archplat.sh | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/archplat.sh b/lib/archplat.sh index 7100568..d7b1424 100644 --- a/lib/archplat.sh +++ b/lib/archplat.sh @@ -94,12 +94,6 @@ arch_is_concerned() if [ "x${arches}" = 'x' ]; then return 0 - elif [ "x${host_arch}" = 'xall' ]; then - if [ "x${arches}" = 'xall' ]; then - return 0 - else - return 1 - fi else seen_arch=1 for arch in ${arches}; do @@ -109,7 +103,7 @@ arch_is_concerned() then seen_arch=1 break - else + elif [ "x${host_arch}" != 'xall' ]; then seen_arch=0 fi elif match_arch "${host_arch}" "${arch}"; then @@ -131,12 +125,6 @@ plat_is_concerned() if [ "x${plats}" = 'x' ]; then return 0 - elif [ "x${host_plat}" = 'xall' ]; then - if [ "x${plats}" = 'xall' ]; then - return 0 - else - return 1 - fi else seen_plat=1 for plat in ${plats}; do @@ -146,7 +134,7 @@ plat_is_concerned() then seen_plat=1 break - else + elif [ "x${host_plat}" != 'xall' ]; then seen_plat=0 fi elif match_plat "${host_plat}" "${plat}"; then |