[oe-commits] [bitbake] 02/06: build/uihelper: Show better information about multiconfig tasks on UI

git at git.openembedded.org git at git.openembedded.org
Wed Dec 21 16:29:23 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 3f0ffd6d4ad37448db9a6fe3b3a7c64280287f89
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Dec 20 21:15:31 2016 +0000

    build/uihelper: Show better information about multiconfig tasks on UI
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/build.py       | 1 +
 lib/bb/ui/uihelper.py | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/bb/build.py b/lib/bb/build.py
index 0c2c1ba..271cda6 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -92,6 +92,7 @@ class TaskBase(event.Event):
     def __init__(self, t, logfile, d):
         self._task = t
         self._package = d.getVar("PF")
+        self._mc = d.getVar("BB_CURRENT_MC")
         self.taskfile = d.getVar("FILE")
         self.taskname = self._task
         self.logfile = logfile
diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py
index fda7cc2..113fced 100644
--- a/lib/bb/ui/uihelper.py
+++ b/lib/bb/ui/uihelper.py
@@ -32,7 +32,10 @@ class BBUIHelper:
 
     def eventHandler(self, event):
         if isinstance(event, bb.build.TaskStarted):
-            self.running_tasks[event.pid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time() }
+            if event._mc != "default":
+                self.running_tasks[event.pid] = { 'title' : "mc:%s:%s %s" % (event._mc, event._package, event._task), 'starttime' : time.time() }
+            else:
+                self.running_tasks[event.pid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time() }
             self.running_pids.append(event.pid)
             self.needUpdate = True
         elif isinstance(event, bb.build.TaskSucceeded):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list