summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/build.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index e390bec51f..a9b40e729d 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -72,7 +72,7 @@ class TaskBase(event.Event):
72 self._task = t 72 self._task = t
73 self._package = d.getVar("PF", 1) 73 self._package = d.getVar("PF", 1)
74 event.Event.__init__(self) 74 event.Event.__init__(self)
75 self._message = "package %s: task %s: %s" % (d.getVar("PF", 1), t, bb.event.getName(self)[4:]) 75 self._message = "package %s: task %s: %s" % (d.getVar("PF", 1), t, self.getDisplayName())
76 76
77 def getTask(self): 77 def getTask(self):
78 return self._task 78 return self._task
@@ -80,6 +80,9 @@ class TaskBase(event.Event):
80 def setTask(self, task): 80 def setTask(self, task):
81 self._task = task 81 self._task = task
82 82
83 def getDisplayName(self):
84 return bb.event.getName(self)[4:]
85
83 task = property(getTask, setTask, None, "task property") 86 task = property(getTask, setTask, None, "task property")
84 87
85class TaskStarted(TaskBase): 88class TaskStarted(TaskBase):
@@ -102,6 +105,10 @@ class TaskFailedSilent(TaskBase):
102 self.logfile = logfile 105 self.logfile = logfile
103 super(TaskFailedSilent, self).__init__(task, metadata) 106 super(TaskFailedSilent, self).__init__(task, metadata)
104 107
108 def getDisplayName(self):
109 # Don't need to tell the user it was silent
110 return "Failed"
111
105class TaskInvalid(TaskBase): 112class TaskInvalid(TaskBase):
106 113
107 def __init__(self, task, metadata): 114 def __init__(self, task, metadata):