summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorChris Larson <clarson@mvista.com>2009-03-18 09:20:31 -0700
committerChris Larson <clarson@mvista.com>2009-05-14 11:33:07 -0700
commitc0622e65a95f42f921e24bfcbc90bce8c838903e (patch)
tree709f1924918578c48d54f5ccaaacdfba4526956b /classes/base.bbclass
parent86999e943334858a687a51bbe2165ede26b00473 (diff)
First pass of cleanup of messages outputted to the user.
OpenEmbedded outputs a lot of messages that the user is likely to never care about. We should only output something when it reflects upon their recipe (i.e. unpacking their sources, applying their patches), or is quite significant or unusual. Signed-off-by: Chris Larson <clarson@mvista.com>
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass17
1 files changed, 3 insertions, 14 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index a901f02a6c..3d4a426e75 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -896,22 +896,11 @@ python base_eventhandler() {
from bb.event import Handled, NotHandled, getName
import os
- messages = {}
- messages["Completed"] = "completed"
- messages["Succeeded"] = "completed"
- messages["Started"] = "started"
- messages["Failed"] = "failed"
-
name = getName(e)
- msg = ""
- 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"):
- msg += "build %s: " % e.name
- msg += messages.get(name[5:]) or name[5:]
+ if name == "TaskCompleted":
+ msg = "package %s: task %s is complete." % (data.getVar("PF", e.data, 1), e.task)
elif name == "UnsatisfiedDep":
- msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower())
+ msg = "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower())
else:
return NotHandled