[Toaster] [PATCH 3/6] toaster: add task to the target_information

Ed Bartosh ed.bartosh at linux.intel.com
Mon Sep 28 01:57:02 PDT 2015


Added task information from BuildStarted event to the
target_information structure.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 bitbake/lib/bb/ui/buildinfohelper.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 5098448..6a26172 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -856,6 +856,10 @@ 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:]
+        target_information['task'] = task
 
         self.internal_state['targets'] = Target.objects.filter(build=target_information['build'])
 
-- 
2.1.4



More information about the toaster mailing list