diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-17 08:28:25 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-17 09:36:27 -0700 |
commit | 566657c13de3fefb5043b71de953fb805799da95 (patch) | |
tree | 0995fc9f55395a5516fa96425d6eaa33e81f326f /lib/bb/ui/uihelper.py | |
parent | b0cbc728e5285f71d043458b4db71ea6bae7e0cd (diff) | |
download | bitbake-566657c13de3fefb5043b71de953fb805799da95.tar.gz |
build: stop injecting os/bb into __builtins__
For one, we should be able to avoid this via _context in bb.utils. For two,
__builtins__ only has to exist for CPython, so this causes problems running
bitbake under other python implementations (though we could change to doing
setattr()s against the __builtin__ module, let's avoid this instead).
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/ui/uihelper.py')
-rw-r--r-- | lib/bb/ui/uihelper.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py index 698de03f0..617d60db8 100644 --- a/lib/bb/ui/uihelper.py +++ b/lib/bb/ui/uihelper.py @@ -17,6 +17,8 @@ # 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 @@ -35,16 +37,6 @@ 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) |