summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/runningbuild.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2012-11-13 16:48:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-20 15:31:56 +0000
commite3bda7f986ca509a530b7b17417ce91e19c6c654 (patch)
treebe4520d8a2af38ad7c53371f30a14d562c668142 /bitbake/lib/bb/ui/crumbs/runningbuild.py
parent328f74a5565856919a3a906fbd0d396d5f88d896 (diff)
downloadpoky-e3bda7f986ca509a530b7b17417ce91e19c6c654.tar.gz
bitbake: hob: warnings during the build should be displayed in the Issues tab
Any issues encountered during the build (fatal or not) is displayed in the Issues tab, and the total number of issues is changed. [YOCTO #3376] (Bitbake rev: 64c662ab7f09c2e867445e8ba21ea63ae014d45b) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/runningbuild.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/runningbuild.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py
index b4d19b6627..f6848fd8bf 100644
--- a/bitbake/lib/bb/ui/crumbs/runningbuild.py
+++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py
@@ -46,7 +46,7 @@ class RunningBuildModel (gtk.TreeStore):
46 color = model.get(it, self.COL_COLOR)[0] 46 color = model.get(it, self.COL_COLOR)[0]
47 if not color: 47 if not color:
48 return False 48 return False
49 if color == HobColors.ERROR: 49 if color == HobColors.ERROR or color == HobColors.WARNING:
50 return True 50 return True
51 return False 51 return False
52 52
@@ -76,7 +76,7 @@ class RunningBuild (gobject.GObject):
76 'build-complete' : (gobject.SIGNAL_RUN_LAST, 76 'build-complete' : (gobject.SIGNAL_RUN_LAST,
77 gobject.TYPE_NONE, 77 gobject.TYPE_NONE,
78 ()), 78 ()),
79 'build-aborted' : (gobject.SIGNAL_RUN_LAST, 79 'build-aborted' : (gobject.SIGNAL_RUN_LAST,
80 gobject.TYPE_NONE, 80 gobject.TYPE_NONE,
81 ()), 81 ()),
82 'task-started' : (gobject.SIGNAL_RUN_LAST, 82 'task-started' : (gobject.SIGNAL_RUN_LAST,
@@ -85,6 +85,9 @@ class RunningBuild (gobject.GObject):
85 'log-error' : (gobject.SIGNAL_RUN_LAST, 85 'log-error' : (gobject.SIGNAL_RUN_LAST,
86 gobject.TYPE_NONE, 86 gobject.TYPE_NONE,
87 ()), 87 ()),
88 'log-warning' : (gobject.SIGNAL_RUN_LAST,
89 gobject.TYPE_NONE,
90 ()),
88 'no-provider' : (gobject.SIGNAL_RUN_LAST, 91 'no-provider' : (gobject.SIGNAL_RUN_LAST,
89 gobject.TYPE_NONE, 92 gobject.TYPE_NONE,
90 (gobject.TYPE_PYOBJECT,)), 93 (gobject.TYPE_PYOBJECT,)),
@@ -148,6 +151,7 @@ class RunningBuild (gobject.GObject):
148 elif event.levelno >= logging.WARNING: 151 elif event.levelno >= logging.WARNING:
149 icon = "dialog-warning" 152 icon = "dialog-warning"
150 color = HobColors.WARNING 153 color = HobColors.WARNING
154 self.emit("log-warning")
151 else: 155 else:
152 icon = None 156 icon = None
153 color = HobColors.OK 157 color = HobColors.OK