From 3fc8d299533a8fe04f855cb7530cf3d5207cef75 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 8 Dec 2014 10:50:25 +0000 Subject: bitbake: 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. (Bitbake rev: f12c738d3dc1f0fd105d457385511440024bffab) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/lib/bb/event.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 32df779786..6cbd0d55db 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/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(): -- cgit v1.2.3-54-g00ecf