[bitbake-devel] [PATCH] bin/bitbake: Only try and process an event_queue if it exists

Richard Purdie richard.purdie at linuxfoundation.org
Fri Mar 28 17:07:21 UTC 2014


The connection may have failed before the event queue has been setup.
Handle this correctly in the exception handler.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index cd01992..45f56b3 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -222,7 +222,7 @@ def start_server(servermodule, configParams, configuration, features):
         server.saveConnectionDetails()
     except Exception as e:
         exc_info = sys.exc_info()
-        while True:
+        while hasattr(server, "event_queue"):
             try:
                 import queue
             except ImportError:





More information about the bitbake-devel mailing list