summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRobert Bradford <rob@openedhand.com>2008-10-20 11:35:37 +0000
committerRobert Bradford <rob@openedhand.com>2008-10-20 11:35:37 +0000
commita8644924ab92b090546df1869714b57ba91fcd8b (patch)
tree25147e332d708112cb82e47d212953618aeddbbe /meta/classes/base.bbclass
parent3f93ed6bce12da9ece86e3f965e4e667b22fb306 (diff)
downloadpoky-a8644924ab92b090546df1869714b57ba91fcd8b.tar.gz
base.bbclass: Output notes only on BB <= 1.8.x
With BB > 1.9 the UI can output the details of an event as it chooses. They do not need to be converted into notes. Without this patch spurious messages are generated on BB 1.9. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5540 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 3334961c28..d67579d9e5 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -752,8 +752,12 @@ python base_eventhandler() {
752 msg += messages.get(name[5:]) or name[5:] 752 msg += messages.get(name[5:]) or name[5:]
753 elif name == "UnsatisfiedDep": 753 elif name == "UnsatisfiedDep":
754 msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower()) 754 msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower())
755 if msg: 755
756 note(msg) 756 # Only need to output when using 1.8 or lower, the UI code handles it
757 # otherwise
758 if (int(bb.__version__.split(".")[0]) <= 1 and int(bb.__version__.split(".")[1]) <= 8):
759 if msg:
760 note(msg)
757 761
758 if name.startswith("BuildStarted"): 762 if name.startswith("BuildStarted"):
759 bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) 763 bb.data.setVar( 'BB_VERSION', bb.__version__, e.data )