summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/uihelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/ui/uihelper.py')
-rw-r--r--lib/bb/ui/uihelper.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py
index 617d60db8..698de03f0 100644
--- a/lib/bb/ui/uihelper.py
+++ b/lib/bb/ui/uihelper.py
@@ -17,8 +17,6 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-import bb.build
-
class BBUIHelper:
def __init__(self):
self.needUpdate = False
@@ -37,6 +35,16 @@ class BBUIHelper:
self.failed_tasks.append( { 'title' : "%s %s" % (event._package, event._task)})
self.needUpdate = True
+ # Add runqueue event handling
+ #if isinstance(event, bb.runqueue.runQueueTaskCompleted):
+ # a = 1
+ #if isinstance(event, bb.runqueue.runQueueTaskStarted):
+ # a = 1
+ #if isinstance(event, bb.runqueue.runQueueTaskFailed):
+ # a = 1
+ #if isinstance(event, bb.runqueue.runQueueExitWait):
+ # a = 1
+
def getTasks(self):
self.needUpdate = False
return (self.running_tasks, self.failed_tasks)