base.bbclass: Kill the 'Pkg' messages in the event handler.
authorChris Larson <clarson@mvista.com>
Wed, 25 Feb 2009 22:12:24 +0000 (14:12 -0800)
committerChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 03:06:30 +0000 (20:06 -0700)
Now that bitbake operates at a task level, not a package level, the
package messages are, at best, useless, and at worst, confusing for the
user.

Signed-off-by: Chris Larson <clarson@mvista.com>
classes/base.bbclass

index 1b61895..d386d89 100644 (file)
@@ -856,10 +856,7 @@ python base_eventhandler() {
 
        name = getName(e)
        msg = ""
-       if name.startswith("Pkg"):
-               msg += "package %s: " % data.getVar("P", e.data, 1)
-               msg += messages.get(name[3:]) or name[3:]
-       elif name.startswith("Task"):
+       if name.startswith("Task"):
                msg += "package %s: task %s: " % (data.getVar("PF", e.data, 1), e.task)
                msg += messages.get(name[4:]) or name[4:]
        elif name.startswith("Build"):
@@ -867,6 +864,8 @@ 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())
+       else:
+               return NotHandled
 
        # Only need to output when using 1.8 or lower, the UI code handles it
        # otherwise