From: Marcin Juszkiewicz Date: Tue, 17 Feb 2009 16:28:09 +0000 (+0100) Subject: base.bbclass: output messages only if BitBake 1.8 is used (from Poky) X-Git-Tag: Release-2010-05/1~3975^2~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd9f28f3c110721a1ff61e0ff60060501d75d9f9;p=openembedded.git base.bbclass: output messages only if BitBake 1.8 is used (from Poky) before (with BitBake trunk): NOTE: package linux-2.6.28-r4: task do_compile: started NOTE: package linux-2.6.28-r4: task do_compile: Started after: NOTE: package linux-2.6.28-r4: task do_compile: Started --- diff --git a/classes/base.bbclass b/classes/base.bbclass index 411adc95d0..18afc1a2fe 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -873,8 +873,12 @@ python base_eventhandler() { msg += messages.get(name[5:]) or name[5:] elif name == "UnsatisfiedDep": msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower()) - if msg: - note(msg) + + # Only need to output when using 1.8 or lower, the UI code handles it + # otherwise + if (int(bb.__version__.split(".")[0]) <= 1 and int(bb.__version__.split(".")[1]) <= 8): + if msg: + note(msg) if name.startswith("BuildStarted"): bb.data.setVar( 'BB_VERSION', bb.__version__, e.data )