summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-05-23 16:36:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-24 08:34:51 +0100
commitbe317df78535120137ecaadf797e3f4dfe04119e (patch)
tree12bd5d277fdc19a45e1e10f11f3b0dbfefe3649c /meta/classes
parentb066906477eb0496a2babb3d8e87682a1b7df0de (diff)
downloadopenembedded-core-be317df78535120137ecaadf797e3f4dfe04119e.tar.gz
openembedded-core-be317df78535120137ecaadf797e3f4dfe04119e.tar.bz2
openembedded-core-be317df78535120137ecaadf797e3f4dfe04119e.zip
sanity.bbclass: check sanity at BuildStarted rather than ConfigParsed
This enables a user to use bitbake -e even when the sanity checks are failing. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/classes')
-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 ff258349b5..a2b45bcda9 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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":