Patchwork [bitbake-devel] bitbake/event.py: UIhandler filter should work without a mask

login
register
mail settings
Submitter Cristiana Voicu
Date Aug. 27, 2013, 8 a.m.
Message ID <1377590433-28244-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/56701/
State New
Headers show

Comments

Cristiana Voicu - Aug. 27, 2013, 8 a.m.
The default for the mask will be * (all the handlers)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/event.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 1169cbf..67cfcea 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -237,7 +237,7 @@  class UIEventFilter(object):
                 return True
             return False
         eid = str(event.__class__)[8:-2]
-        if eid not in self.eventmask:
+        if self.eventmask and eid not in self.eventmask:
             return False
         return True