summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-12-08 10:50:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-31 10:09:51 +0000
commitf12c738d3dc1f0fd105d457385511440024bffab (patch)
treefb236c198b89685d2f75c1e21995340780f361fb
parent4d4baf20487271aa83bd9f1a778e4ea9af6f6681 (diff)
downloadbitbake-f12c738d3dc1f0fd105d457385511440024bffab.tar.gz
event: fix resetting class handlers object
If you don't explicitly specify to use a global variable when doing an assignment, you will be setting a local variable instead, which means this function wasn't working at all. It explains some odd behaviour we have seen in the layer index where event handlers were sometimes bleeding into other contexts where they should not have been. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/event.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 32df77978..6cbd0d55d 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -55,6 +55,7 @@ def get_class_handlers():
return _handlers
def set_class_handlers(h):
+ global _handlers
_handlers = h
def clean_class_handlers():