[bitbake-devel] [PATCH 4/4] event: fix resetting class handlers object
Paul Eggleton
paul.eggleton at linux.intel.com
Mon Dec 8 10:50:25 UTC 2014
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 at linux.intel.com>
---
lib/bb/event.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 9645476..8bc6b80 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():
--
1.9.3
More information about the bitbake-devel
mailing list