summaryrefslogtreecommitdiffstats
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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index daf37ebd45..eed489f5d4 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1454,6 +1454,7 @@ class Parser(multiprocessing.Process):
1454 self.quit = quit 1454 self.quit = quit
1455 self.init = init 1455 self.init = init
1456 multiprocessing.Process.__init__(self) 1456 multiprocessing.Process.__init__(self)
1457 self.context = bb.utils._context.copy()
1457 1458
1458 def run(self): 1459 def run(self):
1459 if self.init: 1460 if self.init:
@@ -1488,6 +1489,7 @@ class Parser(multiprocessing.Process):
1488 1489
1489 def parse(self, filename, appends, caches_array): 1490 def parse(self, filename, appends, caches_array):
1490 try: 1491 try:
1492 bb.utils._context = self.context.copy()
1491 return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array) 1493 return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array)
1492 except Exception as exc: 1494 except Exception as exc:
1493 tb = sys.exc_info()[2] 1495 tb = sys.exc_info()[2]