bitbake/crumbs: fix the event name determination
authorJoshua Lock <josh@linux.intel.com>
Thu, 11 Nov 2010 10:18:11 +0000 (10:18 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 7 Dec 2010 12:50:09 +0000 (12:50 +0000)
Due to some recent change *somewhere* we need to explicitly look at the
name attribute on the instances class, rather than the name attribute of
the instance.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
bitbake/lib/bb/ui/crumbs/runningbuild.py

index 711697c..d4ba4b7 100644 (file)
@@ -83,7 +83,7 @@ class RunningBuild (gobject.GObject):
             # Add the message to the tree either at the top level if parent is
             # None otherwise as a descendent of a task.
             self.model.append (parent,
-                               (event.__name__.split()[-1], # e.g. MsgWarn, MsgError
+                               (event.__class__.__name__.split()[-1], # e.g. MsgWarn, MsgError
                                 package,
                                 task,
                                 event._message,