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

Alex DAMIAN alexandru.damian at intel.com
Tue Sep 24 16:51:49 UTC 2013


From: Alexandru DAMIAN <alexandru.damian at 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 at intel.com>
---
 bitbake/lib/bb/ui/dsi.py | 9 +++++++++
 1 file changed, 9 insertions(+)

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,
-- 
1.8.1.2




More information about the bitbake-devel mailing list