base.bbclass: output messages only if BitBake 1.8 is used (from Poky)
authorMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 17 Feb 2009 16:28:09 +0000 (17:28 +0100)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 17 Feb 2009 16:28:09 +0000 (17:28 +0100)
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

classes/base.bbclass

index 411adc9..18afc1a 100644 (file)
@@ -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 )