summaryrefslogtreecommitdiffstats
path: root/src/opkbuild
diff options
context:
space:
mode:
authorP. 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)
commit712898a34efb1f0dcb1735e023dba2f9770c3e30 (patch)
treecff707f79b9016a799d49abb6b8a06260bec46f1 /src/opkbuild
parentb3fa3341e50d6a761fe20c6ca4ce4de27529b38b (diff)
Don't count "all" as a platform.
Diffstat (limited to 'src/opkbuild')
-rw-r--r--src/opkbuild3
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' \