diff options
Diffstat (limited to 'bitbake/lib/bb/ui/depexp.py')
| -rw-r--r-- | bitbake/lib/bb/ui/depexp.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py index dcf7e6e2f3..b62adbf851 100644 --- a/bitbake/lib/bb/ui/depexp.py +++ b/bitbake/lib/bb/ui/depexp.py | |||
| @@ -199,10 +199,13 @@ class gtkthread(threading.Thread): | |||
| 199 | def main(server, eventHandler): | 199 | def main(server, eventHandler): |
| 200 | try: | 200 | try: |
| 201 | cmdline = server.runCommand(["getCmdLineAction"]) | 201 | cmdline = server.runCommand(["getCmdLineAction"]) |
| 202 | if not cmdline or cmdline[0] != "generateDotGraph": | 202 | if cmdline and not cmdline['action']: |
| 203 | print(cmdline['msg']) | ||
| 204 | return | ||
| 205 | elif not cmdline or (cmdline['action'] and cmdline['action'][0] != "generateDotGraph"): | ||
| 203 | print("This UI is only compatible with the -g option") | 206 | print("This UI is only compatible with the -g option") |
| 204 | return | 207 | return |
| 205 | ret = server.runCommand(["generateDepTreeEvent", cmdline[1], cmdline[2]]) | 208 | ret = server.runCommand(["generateDepTreeEvent", cmdline['action'][1], cmdline['action'][2]]) |
| 206 | if ret != True: | 209 | if ret != True: |
| 207 | print("Couldn't run command! %s" % ret) | 210 | print("Couldn't run command! %s" % ret) |
| 208 | return | 211 | return |
