diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-06-14 15:12:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-08 17:38:42 +0100 |
commit | 4fadc30b92d42523fee013c168d47bc93dfe4fbd (patch) | |
tree | e37df0b79a8d6e20fd8b93bf065c9cd7bb033a5a /bitbake/lib/bb/ui/ncurses.py | |
parent | 18ce7e2ef3a3b65bc0abca4f0135005249e6d2ca (diff) | |
download | poky-4fadc30b92d42523fee013c168d47bc93dfe4fbd.tar.gz |
bitbake cooker/ui: handle cmd line parsing result by individual UI.
Changed the return result of "getCmdLineAction" to a dictionary
{'action', 'msg'} to allow the individual UI decide how to handle the
cmd line parsing result.
(Bitbake rev: 521909d1350a415d19516aa1710041e30950c7cc)
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/ncurses.py')
-rw-r--r-- | bitbake/lib/bb/ui/ncurses.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py index 469f1b7309..8684697aa2 100644 --- a/bitbake/lib/bb/ui/ncurses.py +++ b/bitbake/lib/bb/ui/ncurses.py | |||
@@ -232,8 +232,12 @@ class NCursesUI: | |||
232 | try: | 232 | try: |
233 | cmdline = server.runCommand(["getCmdLineAction"]) | 233 | cmdline = server.runCommand(["getCmdLineAction"]) |
234 | if not cmdline: | 234 | if not cmdline: |
235 | print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") | ||
235 | return | 236 | return |
236 | ret = server.runCommand(cmdline) | 237 | elif not cmdline['action']: |
238 | print(cmdline['msg']) | ||
239 | return | ||
240 | ret = server.runCommand(cmdline['action']) | ||
237 | if ret != True: | 241 | if ret != True: |
238 | print("Couldn't get default commandlind! %s" % ret) | 242 | print("Couldn't get default commandlind! %s" % ret) |
239 | return | 243 | return |