summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-11 10:40:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-12 14:44:53 +0100
commitba17572c9c11efb45a92ba97914ce1f6d84002c8 (patch)
tree8137595e3c7359fee3dabb37b62a522dc7f511aa
parent629c585e687cda9290efcffd18dd92fdf16009ab (diff)
downloadopenembedded-core-ba17572c9c11efb45a92ba97914ce1f6d84002c8.tar.gz
openembedded-core-ba17572c9c11efb45a92ba97914ce1f6d84002c8.tar.bz2
openembedded-core-ba17572c9c11efb45a92ba97914ce1f6d84002c8.zip
classes/sanity: remove obsolete code
We can now rely upon the minimum BitBake version having the SanityCheckFailed event, so remove the code to handle if this is not there. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/classes/sanity.bbclass9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 1210f14ddc..385d7339d3 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -6,13 +6,8 @@ SANITY_REQUIRED_UTILITIES ?= "patch diffstat makeinfo git bzip2 tar gzip gawk ch
def raise_sanity_error(msg, d):
if d.getVar("SANITY_USE_EVENTS", True) == "1":
- # FIXME: handle when BitBake version is too old to support bb.event.SanityCheckFailed
- # We can just fire the event directly once the minimum version is bumped beyond 1.15.1
- try:
- bb.event.fire(bb.event.SanityCheckFailed(msg), d)
- return
- except AttributeError:
- pass
+ bb.event.fire(bb.event.SanityCheckFailed(msg), d)
+ return
bb.fatal(""" OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).