1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 05:29:32 +00:00

bitbake-dev: Remove the Pkg{Started, Failed, Succeeded} events and their handling in the UI

These events are superfluous now that BB operates on a task level granularity.

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5541 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Robert Bradford
2008-10-20 11:35:49 +00:00
parent a8644924ab
commit f105cdc88a
4 changed files with 0 additions and 21 deletions
-4
View File
@@ -183,20 +183,16 @@ class BBCooker:
"""
Build one task of a package, optionally build following task depends
"""
bb.event.fire(bb.event.PkgStarted(item, the_data))
try:
if not self.configuration.dry_run:
bb.build.exec_task('do_%s' % task, the_data)
bb.event.fire(bb.event.PkgSucceeded(item, the_data))
return True
except bb.build.FuncFailed:
bb.msg.error(bb.msg.domain.Build, "task stack execution failed")
bb.event.fire(bb.event.PkgFailed(item, the_data))
raise
except bb.build.EventException, e:
event = e.args[1]
bb.msg.error(bb.msg.domain.Build, "%s event exception, aborting" % bb.event.getName(event))
bb.event.fire(bb.event.PkgFailed(item, the_data))
raise
def tryBuild(self, fn):
-12
View File
@@ -208,18 +208,6 @@ class DepBase(PkgBase):
dep = property(getDep, setDep, None, "dep property")
class PkgStarted(PkgBase):
"""Package build started"""
class PkgFailed(PkgBase):
"""Package build failed"""
class PkgSucceeded(PkgBase):
"""Package build completed"""
class BuildStarted(BuildBase):
"""bbmake build run started"""
-3
View File
@@ -56,9 +56,6 @@ def init(server, eventHandler):
if event is None:
continue
#print event
if event[0].startswith('bb.event.Pkg'):
print "NOTE: %s" % event[1]['_message']
continue
if event[0].startswith('bb.msg.MsgPlain'):
print event[1]['_message']
continue
-2
View File
@@ -245,8 +245,6 @@ class NCursesUI:
continue
helper.eventHandler(event)
#mw.appendText("%s\n" % event[0])
if event[0].startswith('bb.event.Pkg'):
mw.appendText("NOTE: %s\n" % event[1]['_message'])
if event[0].startswith('bb.build.Task'):
mw.appendText("NOTE: %s\n" % event[1]['_message'])
if event[0].startswith('bb.msg.MsgDebug'):