summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass30
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 918d859c93..9144f9cd84 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -205,31 +205,7 @@ python base_eventhandler() {
205 from bb import note, error, data 205 from bb import note, error, data
206 from bb.event import getName 206 from bb.event import getName
207 207
208 messages = {}
209 messages["Completed"] = "completed"
210 messages["Succeeded"] = "completed"
211 messages["Started"] = "started"
212 messages["Failed"] = "failed"
213
214 name = getName(e) 208 name = getName(e)
215 msg = ""
216 if name.startswith("Pkg"):
217 msg += "package %s: " % data.getVar("P", e.data, 1)
218 msg += messages.get(name[3:]) or name[3:]
219 elif name.startswith("Task"):
220 msg += "package %s: task %s: " % (data.getVar("PF", e.data, 1), e.task)
221 msg += messages.get(name[4:]) or name[4:]
222 elif name.startswith("Build"):
223 msg += "build %s: " % e.name
224 msg += messages.get(name[5:]) or name[5:]
225 elif name == "UnsatisfiedDep":
226 msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower())
227
228 # Only need to output when using 1.8 or lower, the UI code handles it
229 # otherwise
230 if (int(bb.__version__.split(".")[0]) <= 1 and int(bb.__version__.split(".")[1]) <= 8):
231 if msg:
232 note(msg)
233 209
234 if name.startswith("BuildStarted"): 210 if name.startswith("BuildStarted"):
235 bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) 211 bb.data.setVar( 'BB_VERSION', bb.__version__, e.data )
@@ -275,12 +251,6 @@ python base_eventhandler() {
275 251
276 if not data in e.__dict__: 252 if not data in e.__dict__:
277 return 253 return
278
279 log = data.getVar("EVENTLOG", e.data, 1)
280 if log:
281 logfile = file(log, "a")
282 logfile.write("%s\n" % msg)
283 logfile.close()
284} 254}
285 255
286addtask configure after do_unpack do_patch 256addtask configure after do_unpack do_patch