From a8644924ab92b090546df1869714b57ba91fcd8b Mon Sep 17 00:00:00 2001 From: Robert Bradford Date: Mon, 20 Oct 2008 11:35:37 +0000 Subject: 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 --- meta/classes/base.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'meta/classes/base.bbclass') 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() { 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 ) -- cgit v1.2.3-54-g00ecf