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 2c54209f89..4d6cf81a3c 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1606,6 +1606,7 @@ class Parser(multiprocessing.Process):
1606 self.quit = quit 1606 self.quit = quit
1607 self.init = init 1607 self.init = init
1608 multiprocessing.Process.__init__(self) 1608 multiprocessing.Process.__init__(self)
1609 self.context = bb.utils._context.copy()
1609 1610
1610 def run(self): 1611 def run(self):
1611 if self.init: 1612 if self.init:
@@ -1640,6 +1641,7 @@ class Parser(multiprocessing.Process):
1640 1641
1641 def parse(self, filename, appends, caches_array): 1642 def parse(self, filename, appends, caches_array):
1642 try: 1643 try:
1644 bb.utils._context = self.context.copy()
1643 return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array) 1645 return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array)
1644 except Exception as exc: 1646 except Exception as exc:
1645 tb = sys.exc_info()[2] 1647 tb = sys.exc_info()[2]