summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index a1620b0162..3a25956625 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -70,12 +70,16 @@ class BBCooker:
self.cache = None
self.bb_cache = None
- self.server = server.BitBakeServer(self)
+ if server:
+ self.server = server.BitBakeServer(self)
self.configuration = configuration
self.configuration.data = bb.data.init()
+ if not server:
+ bb.data.setVar("BB_WORKERCONTEXT", "1", self.configuration.data)
+
bb.data.inheritFromOS(self.configuration.data)
self.parseConfigurationFiles(self.configuration.file)
@@ -544,7 +548,6 @@ class BBCooker:
bb.event.fire(bb.event.ConfigParsed(), self.configuration.data)
-
except IOError as e:
bb.msg.fatal(bb.msg.domain.Parsing, "Error when parsing %s: %s" % (files, str(e)))
except bb.parse.ParseError as details: