summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-23 15:02:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-26 17:56:43 +0100
commitcb1911385a065603de8d16e3fefc25220647158f (patch)
treea8e048866d33331d28317a44629123a0f7aef7dd /meta
parent9fe66fd8e2f1feccef1e2c0d6f6d7e117e06507e (diff)
downloadpoky-cb1911385a065603de8d16e3fefc25220647158f.tar.gz
base.bbclass: Drop legacy code that is no longer useful/used
The code displaying console events has been handled by the bitbake UI since 1.8 so the legacy code path can be removed. If a log event is wanted, there are much better (and more complete) ways to do this so remove the EVENTLOG code too. (From OE-Core rev: aa60484384385a8b0f07e8062d58056a3670e399) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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