diff options
author | P. J. McDermott <pjm@nac.net> | 2012-02-03 13:55:18 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-02-03 13:55:18 (EST) |
commit | 712898a34efb1f0dcb1735e023dba2f9770c3e30 (patch) | |
tree | cff707f79b9016a799d49abb6b8a06260bec46f1 | |
parent | b3fa3341e50d6a761fe20c6ca4ce4de27529b38b (diff) |
Don't count "all" as a platform.
-rw-r--r-- | src/opkbuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opkbuild b/src/opkbuild index 902e331..a5df386 100644 --- a/src/opkbuild +++ b/src/opkbuild @@ -101,7 +101,8 @@ if [ ! -f config ]; then # If a target platform was not specified ... elif [ -z "${platform}" ]; then platform=$(opkg print-architecture | \ - sed -n 's/^arch \([^ -][^ -]*\) [0-9][0-9]*$/\1/p') + sed -n 's/^arch \([^ -][^ -]*\) [0-9][0-9]*$/\1/p' | \ + grep -v 'all') # ... and there are config files and zero installable platforms, fail. if [ -z "${platform}" ]; then printf 'opkbuild: Error: %s\n' \ |