Patchwork [bitbake-devel] bin/bitbake: Clear ui-queue when starting a server

login
register
mail settings
Submitter Richard Purdie
Date Oct. 4, 2013, 1:17 p.m.
Message ID <1380892665.18603.606.camel@ted>
Download mbox | patch
Permalink /patch/59263/
State New
Headers show

Comments

Richard Purdie - Oct. 4, 2013, 1:17 p.m.
When starting a server we don't want to show the debug event queue which
is reserved for when when errors have occurred. This patch copies the UI
code to ensure the user doesn't see confusing output.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index 4d93a35..920c6c4 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -292,6 +292,7 @@  def main():
     if not configParams.remote_server:
         # we start a server with a given configuration
         server = start_server(servermodule, configParams, configuration)
+        bb.event.ui_queue = []
     else:
         # we start a stub server that is actually a XMLRPClient that connects to a real server
         server = servermodule.BitBakeXMLRPCClient(configParams.observe_only)