summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2007-08-25 15:13:10 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2007-08-25 15:13:10 +0000
commitb5b067c18dd66ed6d26394cd2637e131f912ed4c (patch)
tree642d2ed6db538ba434f4a1c64773fac8bbf526f1 /lib/bb/ui
parent622454edf402c3d545d6696c88e02799c8979303 (diff)
downloadbitbake-b5b067c18dd66ed6d26394cd2637e131f912ed4c.tar.gz
ncurses.py: Update so it runs again
Diffstat (limited to 'lib/bb/ui')
-rw-r--r--lib/bb/ui/ncurses.py24
1 files changed, 19 insertions, 5 deletions
diff --git a/lib/bb/ui/ncurses.py b/lib/bb/ui/ncurses.py
index c9405c93a..dcf9b2a2d 100644
--- a/lib/bb/ui/ncurses.py
+++ b/lib/bb/ui/ncurses.py
@@ -49,7 +49,7 @@
"""
-import os, sys, curses, time, random, threading, itertools
+import os, sys, curses, time, random, threading, itertools, time
from curses.textpad import Textbox
import bb
from bb import ui
@@ -216,14 +216,22 @@ class NCursesUI:
helper = uihelper.BBUIHelper()
try:
- frontend.runCommand("cook")
+ cmdline = frontend.runCommand(["getCmdLineAction"])
+ #print cmdline
+ if not cmdline:
+ return
+ ret = frontend.runCommand(cmdline)
+ if ret != True:
+ print "Couldn't get default commandlind! %s" % ret
+ return
except xmlrpclib.Fault, x:
- print x
+ print "XMLRPC Fault getting commandline:\n %s" % x
+ return
exitflag = False
while not exitflag:
try:
- event = eventHandler.waitEvent()
+ event = eventHandler.waitEvent(0.25)
if not event:
continue
helper.eventHandler(event)
@@ -269,7 +277,13 @@ class NCursesUI:
# bb.msg.error(bb.msg.domain.Build, "see log in %s" % logfile)
- if event[0] == 'bb.event.CookerCommandCompleted':
+ if event[0] == 'bb.command.CookerCommandCompleted':
+ exitflag = True
+ if event[0] == 'bb.command.CookerCommandFailed':
+ mw.appendText("Command execution failed: %s" % event[1]['error'])
+ time.sleep(2)
+ exitflag = True
+ if event[0] == 'bb.cooker.CookerExit':
exitflag = True
tasks = helper.getTasks()