Patchwork [7/7] sanity.bbclass: check sanity at BuildStarted rather than ConfigParsed

login
register
mail settings
Submitter Joshua Lock
Date May 24, 2012, 12:03 a.m.
Message ID <8e6908083629434bc83790be431460d4a02f16eb.1337816265.git.josh@linux.intel.com>
Download mbox | patch
Permalink /patch/28511/
State Accepted
Commit be317df78535120137ecaadf797e3f4dfe04119e
Headers show

Comments

Joshua Lock - May 24, 2012, 12:03 a.m.
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 4b52699..689155c 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -539,7 +539,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":