summaryrefslogtreecommitdiffstats
path: root/bitbake-dev/bin/bitbake
diff options
context:
space:
mode:
authorRobert Bradford <rob@openedhand.com>2008-10-17 09:47:08 +0000
committerRobert Bradford <rob@openedhand.com>2008-10-17 09:47:08 +0000
commitd636d1b1ef838c0c81f0167b649816d7fb4015e0 (patch)
treedc3303f6054e626e8cc75e588ab41444368d4bce /bitbake-dev/bin/bitbake
parentbd63867cbe48eab91523731def4cec80187b5c0f (diff)
downloadpoky-d636d1b1ef838c0c81f0167b649816d7fb4015e0.tar.gz
bitbake-dev: Don't fallback if the UI fails to start; give an error message on UI exception
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake-dev/bin/bitbake')
-rwxr-xr-xbitbake-dev/bin/bitbake9
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake-dev/bin/bitbake b/bitbake-dev/bin/bitbake
index ea4147e971..1f650e2bdc 100755
--- a/bitbake-dev/bin/bitbake
+++ b/bitbake-dev/bin/bitbake
@@ -168,12 +168,6 @@ Default BBFILES are the .bb files in the current directory.""" )
168 # Launch the UI 168 # Launch the UI
169 try: 169 try:
170 if curseUI: 170 if curseUI:
171 try:
172 import curses
173 except ImportError, details:
174 curseUI = False
175
176 if curseUI:
177 from bb.ui import ncurses 171 from bb.ui import ncurses
178 ncurses.init(server, eventHandler) 172 ncurses.init(server, eventHandler)
179 elif depexplorerUI: 173 elif depexplorerUI:
@@ -182,7 +176,8 @@ Default BBFILES are the .bb files in the current directory.""" )
182 else: 176 else:
183 from bb.ui import knotty 177 from bb.ui import knotty
184 return_value = knotty.init(server, eventHandler) 178 return_value = knotty.init(server, eventHandler)
185 179 except Exception, e:
180 print "FATAL: Unable to start to '%s' UI: %s" % (configuration.ui, e.message)
186 finally: 181 finally:
187 # Don't wait for server indefinitely 182 # Don't wait for server indefinitely
188 import socket 183 import socket