]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Don't run the handler in worker context
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 16 Aug 2010 15:41:43 +0000 (16:41 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 19 Aug 2010 21:36:26 +0000 (22:36 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/sanity.bbclass

index a595224a7f80fde8fe9a0629c64a5f358529e2fe..15faa7e431f12a7be9d925e8e9e866cd22092d8e 100644 (file)
@@ -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