summaryrefslogtreecommitdiffstats
path: root/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-23 10:49:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-23 10:57:26 +0100
commit6c3281a140125337fc75783973485e16785d05a1 (patch)
tree4be1d109dfe19f8cc29aeb93e9b90e3a4d2aeb51 /lib/bb/cookerdata.py
parent3dc83bbb1bf387bb7ecea2e17f0f72cfccecba92 (diff)
downloadopenembedded-core-contrib-6c3281a140125337fc75783973485e16785d05a1.tar.gz
cooker/cookerdata/utils: Improve context management
The current execution context management for bitbake is ugly and the use of a global variable is nasty. Fixing that is hard, however we can improve things to start to establish an API for accessing and changing that context. This patch also adds in an explicit reset of the context when we reparse the configuration data which starts to improve the lifecycle of the data in setups like hob. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cookerdata.py')
-rw-r--r--lib/bb/cookerdata.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index c4a28c86c5..de4331050d 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -173,6 +173,7 @@ class CookerDataBuilder(object):
self.postfiles = params.postfile
self.tracking = params.tracking
+ bb.utils.set_context(bb.utils.clean_context())
self.data = bb.data.init()
if self.tracking:
self.data.enableTracking()