diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-23 10:50:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-23 10:57:35 +0100 |
commit | 54e35a6cceead9521f8b1dacd48e55064e85c8bd (patch) | |
tree | bba12b3a75b88fdd86c8126cf7197142418abd3f /lib/bb/cooker.py | |
parent | 6c3281a140125337fc75783973485e16785d05a1 (diff) | |
download | bitbake-54e35a6cceead9521f8b1dacd48e55064e85c8bd.tar.gz |
cooker/cookerdata/event: Improve class handlers management
Similarly to the execution context changes, establish better lifetime
management API of the class event handlers.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r-- | lib/bb/cooker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index e8686475b..4c0b56943 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1455,7 +1455,7 @@ class Parser(multiprocessing.Process): self.init = init multiprocessing.Process.__init__(self) self.context = bb.utils.get_context().copy() - self.handlers = bb.event._handlers.copy() + self.handlers = bb.event.get_class_handlers().copy() def run(self): if self.init: @@ -1492,7 +1492,7 @@ class Parser(multiprocessing.Process): try: # Reset our environment and handlers to the original settings bb.utils.set_context(self.context.copy()) - bb.event._handlers = self.handlers.copy() + bb.event.set_class_handlers(self.handlers.copy()) return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array) except Exception as exc: tb = sys.exc_info()[2] |