summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/ncurses.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/ncurses.py')
-rw-r--r--bitbake/lib/bb/ui/ncurses.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py
index 98647fc3e0..c45ffd63ac 100644
--- a/bitbake/lib/bb/ui/ncurses.py
+++ b/bitbake/lib/bb/ui/ncurses.py
@@ -196,7 +196,7 @@ class NCursesUI:
196# t.start() 196# t.start()
197 197
198 #-------------------------------------------------------------------------# 198 #-------------------------------------------------------------------------#
199 def main(self, stdscr, server, eventHandler): 199 def main(self, stdscr, server, eventHandler, params):
200 #-------------------------------------------------------------------------# 200 #-------------------------------------------------------------------------#
201 height, width = stdscr.getmaxyx() 201 height, width = stdscr.getmaxyx()
202 202
@@ -236,13 +236,15 @@ class NCursesUI:
236 shutdown = 0 236 shutdown = 0
237 237
238 try: 238 try:
239 cmdline, error = server.runCommand(["getCmdLineAction"]) 239 params.updateFromServer(server)
240 cmdline = params.parseActions()
240 if not cmdline: 241 if not cmdline:
241 print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") 242 print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.")
242 return 243 return 1
243 elif error: 244 if 'msg' in cmdline and cmdline['msg']:
244 print("Error getting bitbake commandline: %s" % error) 245 logger.error(cmdline['msg'])
245 return 246 return 1
247 cmdline = cmdline['action']
246 ret, error = server.runCommand(cmdline) 248 ret, error = server.runCommand(cmdline)
247 if error: 249 if error:
248 print("Error running command '%s': %s" % (cmdline, error)) 250 print("Error running command '%s': %s" % (cmdline, error))