diff options
author | Robert Bradford <rob@openedhand.com> | 2008-10-20 11:35:37 +0000 |
---|---|---|
committer | Robert Bradford <rob@openedhand.com> | 2008-10-20 11:35:37 +0000 |
commit | a8644924ab92b090546df1869714b57ba91fcd8b (patch) | |
tree | 25147e332d708112cb82e47d212953618aeddbbe /meta | |
parent | 3f93ed6bce12da9ece86e3f965e4e667b22fb306 (diff) | |
download | openembedded-core-a8644924ab92b090546df1869714b57ba91fcd8b.tar.gz openembedded-core-a8644924ab92b090546df1869714b57ba91fcd8b.tar.bz2 openembedded-core-a8644924ab92b090546df1869714b57ba91fcd8b.zip |
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')
-rw-r--r-- | meta/classes/base.bbclass | 8 |
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() { 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 ) |