[bitbake-devel,20/94] bitbake: dsi: clear up the state on build completion

Submitted by Alexandru DAMIAN on Sept. 24, 2013, 4:51 p.m.

Details

Message ID d9f1c6b249c58f65509b627a70fc7038240e4561.1380041477.git.alexandru.damian@intel.com
State New
Headers show

Commit Message

Alexandru DAMIAN Sept. 24, 2013, 4:51 p.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

In order to prevent cross-data between different builds,
we drop the build helper object which contains the state
of the current build when the build is completed.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 bitbake/lib/bb/ui/dsi.py | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/ui/dsi.py b/bitbake/lib/bb/ui/dsi.py
index 6264ecc..90dd732 100644
--- a/bitbake/lib/bb/ui/dsi.py
+++ b/bitbake/lib/bb/ui/dsi.py
@@ -458,6 +458,15 @@  def main(server, eventHandler, params, tf = TerminalFilter):
                 # trigger an error
                 continue
 
+            if isinstance(event, (bb.event.BuildCompleted,
+                                  bb.command.CommandCompleted,
+                                  bb.command.CommandFailed,
+                                  bb.command.CommandExit)):
+                buildinfohelper.update_build_information(event, errors, warnings, taskfailures)
+                # we start a new build info
+                buildinfohelper = BuildInfoHelper(server)
+                continue
+
             # ignore
             if isinstance(event, (bb.event.BuildBase,
                                   bb.event.StampUpdate,