[bitbake-devel] [PATCH 59/94] bitbake: dsi: clear up global variables between builds

Alex DAMIAN alexandru.damian at intel.com
Tue Sep 24 16:52:28 UTC 2013


From: Alexandru DAMIAN <alexandru.damian at intel.com>

We're making sure that global variables that track
a build data get reset when the build ends.

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

diff --git a/bitbake/lib/bb/ui/dsi.py b/bitbake/lib/bb/ui/dsi.py
index f72b1be..c139cd2 100644
--- a/bitbake/lib/bb/ui/dsi.py
+++ b/bitbake/lib/bb/ui/dsi.py
@@ -479,8 +479,12 @@ def main(server, eventHandler, params, tf = TerminalFilter):
                                   bb.command.CommandFailed,
                                   bb.command.CommandExit)):
 
-                # we start a new build info
                 buildinfohelper.update_build_information(event, errors, warnings, taskfailures)
+
+                # we start a new build info
+                errors = 0
+                warnings = 0
+                taskfailures = []
                 buildinfohelper = BuildInfoHelper(server, build_history_enabled)
                 buildinfohelper.store_layer_info()
                 continue
-- 
1.8.1.2




More information about the bitbake-devel mailing list