diff options
Diffstat (limited to 'bitbake/lib/bb/ui/depexp.py')
-rw-r--r-- | bitbake/lib/bb/ui/depexp.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py index 85910f6925..885c31aeac 100644 --- a/bitbake/lib/bb/ui/depexp.py +++ b/bitbake/lib/bb/ui/depexp.py | |||
@@ -196,16 +196,18 @@ class gtkthread(threading.Thread): | |||
196 | gtkthread.quit.set() | 196 | gtkthread.quit.set() |
197 | 197 | ||
198 | 198 | ||
199 | def main(server, eventHandler): | 199 | def main(server, eventHandler, params): |
200 | try: | 200 | try: |
201 | cmdline, error = server.runCommand(["getCmdLineAction"]) | 201 | params.updateFromServer(server) |
202 | if error: | 202 | cmdline = params.parseActions() |
203 | print("Error getting bitbake commandline: %s" % error) | 203 | if not cmdline: |
204 | return 1 | ||
205 | elif not cmdline: | ||
206 | print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") | 204 | print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") |
207 | return 1 | 205 | return 1 |
208 | elif not cmdline or cmdline[0] != "generateDotGraph": | 206 | if 'msg' in cmdline and cmdline['msg']: |
207 | logger.error(cmdline['msg']) | ||
208 | return 1 | ||
209 | cmdline = cmdline['action'] | ||
210 | if not cmdline or cmdline[0] != "generateDotGraph": | ||
209 | print("This UI is only compatible with the -g option") | 211 | print("This UI is only compatible with the -g option") |
210 | return 1 | 212 | return 1 |
211 | ret, error = server.runCommand(["generateDepTreeEvent", cmdline[1], cmdline[2]]) | 213 | ret, error = server.runCommand(["generateDepTreeEvent", cmdline[1], cmdline[2]]) |