[oe-commits] Chris Larson : base.bbclass: Kill the 'Pkg' messages in the event handler.

GIT User account git at amethyst.openembedded.net
Sat Mar 21 19:09:56 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 515fc2744996506d8394f90dfe237175e51dc441
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=515fc2744996506d8394f90dfe237175e51dc441

Author: Chris Larson <clarson at mvista.com>
Date:   Wed Feb 25 14:12:24 2009 -0800

base.bbclass: Kill the 'Pkg' messages in the event handler.

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 at mvista.com>

---

 classes/base.bbclass |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 1b61895..d386d89 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -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





More information about the Openembedded-commits mailing list