mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
bitbake/crumbs: Fix crumbs UI for bitbake event class name changes
Some of the events we where trying to look for have had their class names changed, fix these references. Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
4336d676d4
commit
96da2ea1f9
@@ -67,11 +67,12 @@ class RunningBuild (gobject.GObject):
|
|||||||
(package, task) = self.pids_to_task[pid]
|
(package, task) = self.pids_to_task[pid]
|
||||||
parent = self.tasks_to_iter[(package, task)]
|
parent = self.tasks_to_iter[(package, task)]
|
||||||
|
|
||||||
if isinstance(event, bb.msg.Msg):
|
if isinstance(event, bb.msg.MsgBase):
|
||||||
|
|
||||||
# Set a pretty icon for the message based on it's type.
|
# Set a pretty icon for the message based on it's type.
|
||||||
if isinstance(event, bb.msg.MsgWarn):
|
if isinstance(event, bb.msg.MsgWarn):
|
||||||
icon = "dialog-warning"
|
icon = "dialog-warning"
|
||||||
elif isinstance(event, bb.msg.MsgErr):
|
elif isinstance(event, bb.msg.MsgError):
|
||||||
icon = "dialog-error"
|
icon = "dialog-error"
|
||||||
else:
|
else:
|
||||||
icon = None
|
icon = None
|
||||||
@@ -128,7 +129,7 @@ class RunningBuild (gobject.GObject):
|
|||||||
# Mark this task as active.
|
# Mark this task as active.
|
||||||
self.model.set(i, self.model.COL_ICON, "gtk-execute")
|
self.model.set(i, self.model.COL_ICON, "gtk-execute")
|
||||||
|
|
||||||
elif isinstance(event, bb.build.Task):
|
elif isinstance(event, bb.build.TaskBase):
|
||||||
|
|
||||||
if isinstance(event, bb.build.TaskFailed):
|
if isinstance(event, bb.build.TaskFailed):
|
||||||
# Mark the task as failed
|
# Mark the task as failed
|
||||||
|
|||||||
Reference in New Issue
Block a user