diff options
Diffstat (limited to 'bitbake/bin/bitbake')
-rwxr-xr-x | bitbake/bin/bitbake | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 8212130683..1dbaf96b41 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -210,16 +210,17 @@ Default BBFILES are the .bb files in the current directory.""") | |||
210 | ui = "knotty" | 210 | ui = "knotty" |
211 | 211 | ||
212 | try: | 212 | try: |
213 | # Dynamically load the UI based on the ui name. Although we | 213 | try: |
214 | # suggest a fixed set this allows you to have flexibility in which | 214 | # Dynamically load the UI based on the ui name. Although we |
215 | # ones are available. | 215 | # suggest a fixed set this allows you to have flexibility in which |
216 | uimodule = __import__("bb.ui", fromlist = [ui]) | 216 | # ones are available. |
217 | ui_init = getattr(uimodule, ui).init | 217 | uimodule = __import__("bb.ui", fromlist = [ui]) |
218 | except AttributeError: | 218 | ui_init = getattr(uimodule, ui).init |
219 | print("FATAL: Invalid user interface '%s' specified. " % ui) | 219 | except AttributeError: |
220 | print("Valid interfaces are 'ncurses', 'depexp' or the default, 'knotty'.") | 220 | print("FATAL: Invalid user interface '%s' specified. " % ui) |
221 | else: | 221 | print("Valid interfaces are 'ncurses', 'depexp' or the default, 'knotty'.") |
222 | return_value = server.BitbakeUILauch().launch(serverinfo, ui_init, serverConnection.connection, serverConnection.events) | 222 | else: |
223 | return_value = server.BitbakeUILauch().launch(serverinfo, ui_init, serverConnection.connection, serverConnection.events) | ||
223 | finally: | 224 | finally: |
224 | serverConnection.terminate() | 225 | serverConnection.terminate() |
225 | 226 | ||