]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: check sanity at BuildStarted rather than ConfigParsed
authorJoshua Lock <josh@linux.intel.com>
Wed, 23 May 2012 23:36:42 +0000 (16:36 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 May 2012 07:34:51 +0000 (08:34 +0100)
This enables a user to use bitbake -e even when the sanity checks are
failing.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/sanity.bbclass

index ff258349b537fea2008880b3e49f38f117b496b0..a2b45bcda9d4de2637f3450610dcdac96b8a76a8 100644 (file)
@@ -543,7 +543,7 @@ def copy_data(e):
 
 addhandler check_sanity_eventhandler
 python check_sanity_eventhandler() {
-    if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1":
+    if bb.event.getName(e) == "BuildStarted" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1":
         sanity_data = copy_data(e)
         check_sanity(sanity_data)
     elif bb.event.getName(e) == "SanityCheck":