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 eed489f5d4..41f70ab95a 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1455,6 +1455,7 @@ class Parser(multiprocessing.Process):
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 self.context = bb.utils._context.copy()
1458 self.handlers = bb.event._handlers.copy()
1458 1459
1459 def run(self): 1460 def run(self):
1460 if self.init: 1461 if self.init:
@@ -1490,6 +1491,7 @@ class Parser(multiprocessing.Process):
1490 def parse(self, filename, appends, caches_array): 1491 def parse(self, filename, appends, caches_array):
1491 try: 1492 try:
1492 bb.utils._context = self.context.copy() 1493 bb.utils._context = self.context.copy()
1494 bb.event._handlers = self.handlers.copy()
1493 return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array) 1495 return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array)
1494 except Exception as exc: 1496 except Exception as exc:
1495 tb = sys.exc_info()[2] 1497 tb = sys.exc_info()[2]