summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-16 16:41:43 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-19 22:36:26 +0100
commit7a0f6ceb811a2b5d7cbfce45f40bbe1cbf305f49 (patch)
tree9624abd61f9cea585c0e6d3f8b1edd194108951c
parent3c539be84cbd4d1a5f07ebef22944f9807831874 (diff)
downloadopenembedded-core-7a0f6ceb811a2b5d7cbfce45f40bbe1cbf305f49.tar.gz
openembedded-core-7a0f6ceb811a2b5d7cbfce45f40bbe1cbf305f49.tar.bz2
openembedded-core-7a0f6ceb811a2b5d7cbfce45f40bbe1cbf305f49.tar.xz
openembedded-core-7a0f6ceb811a2b5d7cbfce45f40bbe1cbf305f49.zip
sanity.bbclass: Don't run the handler in worker context
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/classes/sanity.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index a595224a7..15faa7e43 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -211,7 +211,7 @@ def check_sanity(e):
addhandler check_sanity_eventhandler
python check_sanity_eventhandler() {
from bb.event import Handled, NotHandled
- if bb.event.getName(e) == "ConfigParsed":
+ if bb.event.getName(e) == "ConfigParsed" and bb.data.getVar("BB_WORKERCONTEXT", e.data, True) != "1":
check_sanity(e)
return NotHandled