summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-17 21:40:24 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-17 21:40:24 +0000
commit8bc61c54fdac2884d23ae3802afe7f5f81c7aff2 (patch)
tree131c8ed3980b6aa897fcb471314cfa01ae2193dd /classes/base.bbclass
parent94d87cd53a89e085b09ca55c1bc05a7c313998e8 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/01/17 22:09:22+01:00 handhelds.org!zecke Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into handhelds.org:/home/ich/programming/oe/openembedded 2005/01/17 22:08:56+01:00 handhelds.org!zecke UICMOC use Qt2.3.9: -Use recent Qt2.3.9 for building uicmoc -Update patches to work with Qt2.3.9 version 2005/01/17 22:07:14+01:00 handhelds.org!zecke Qt 2.3.9: -Update to 14.01.2005 snapshot -TSlib patch is included but castrated, uncastrate it -The latest mouse release patch was fixed independently by Trolltech as well -Update other patches 2005/01/17 16:00:45-05:00 handhelds.org!kergoth Merge oe-devel@oe-devel.bkbits.net:openembedded into handhelds.org:/home/kergoth/code/openembedded 2005/01/17 15:56:11-05:00 handhelds.org!kergoth Update the default event handler to clean things up a bit, and to mention the package version in the Pkg events, which people have requested in the past. 2005/01/17 20:49:43+00:00 rpsys.net!RP Add facility to pass parallel build option to make. Disable parallel build option for known broken packages. BKrev: 41ec30c8I5e1Ks5lsaghKSnrJo6cVg
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass42
1 files changed, 26 insertions, 16 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 501eefb50b..608114cb22 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -448,23 +448,33 @@ python base_eventhandler() {
from bb.event import Handled, NotHandled, getName
import os
+ messages = {}
+ messages["Succeeded"] = "completed"
+ messages["Started"] = "started"
+ messages["Failed"] = "failed"
+
name = getName(e)
- if name in ["PkgSucceeded"]:
- note("package %s: build completed" % e.pkg)
- if name in ["PkgStarted"]:
- note("package %s: build %s" % (e.pkg, name[3:].lower()))
- elif name in ["PkgFailed"]:
- error("package %s: build %s" % (e.pkg, name[3:].lower()))
- elif name in ["TaskStarted"]:
- note("package %s: task %s %s" % (data.expand(data.getVar("PF", e.data), e.data), e.task, name[4:].lower()))
- elif name in ["TaskSucceeded"]:
- note("package %s: task %s completed" % (data.expand(data.getVar("PF", e.data), e.data), e.task))
- elif name in ["TaskFailed"]:
- error("package %s: task %s %s" % (data.expand(data.getVar("PF", e.data), e.data), e.task, name[4:].lower()))
- elif name in ["UnsatisfiedDep"]:
- note("package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower()))
- elif name in ["BuildStarted", "BuildCompleted"]:
- note("build %s %s" % (e.name, name[5:].lower()))
+ 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"):
+ 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:]
+ elif name == "UnsatisfiedDep":
+ msg += "package %s: dependency %s %s" % (e.pkg, e.dep, name[:-3].lower())
+ note(msg)
+ if not data in e.__dict__:
+ return NotHandled
+
+ log = data.getVar("EVENTLOG", e.data, 1)
+ if log:
+ logfile = file(log, "a")
+ logfile.write("%s\n" % msg)
+ logfile.close()
return NotHandled
}