[Toaster] [PATCH 3/6] toaster: add task to the target_information
Ed Bartosh
ed.bartosh at linux.intel.com
Tue Sep 29 00:55:30 PDT 2015
Added task information from BuildStarted event to the
target_information structure. Made sure 'build' task
is not set in Target objects as it shouldn't be shown
in Toaster UI.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
bitbake/lib/bb/ui/buildinfohelper.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 9fdde29..34a8694 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -925,6 +925,12 @@ class BuildInfoHelper(object):
target_information = {}
target_information['targets'] = event._pkgs
target_information['build'] = build_obj
+ task = getattr(event, 'task', '')
+ if task.startswith('do_'):
+ task = task[3:]
+ if task == 'build':
+ task = ''
+ target_information['task'] = task
self.internal_state['targets'] = self.orm_wrapper.create_target_objects(target_information)
--
2.1.4
More information about the toaster
mailing list