summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
authorBogdan Marinescu <bogdan.a.marinescu@intel.com>2012-09-26 16:59:57 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-27 16:45:26 +0100
commit7414ba713d2f701b7fcaae3bfc77479a1373d52f (patch)
treee5932b1d0d0d1b58502836a2291e3acfa67dbe48 /bitbake/lib/bb/ui/crumbs/hobeventhandler.py
parent6fdff49d9b37a18221f8d5571f757e69b945e533 (diff)
downloadpoky-7414ba713d2f701b7fcaae3bfc77479a1373d52f.tar.gz
bitbake: Add sanity check progress screen
This patch adds a sanity check progress screen to hob. The screen is displayed when Hob executes the sanity check procedure. The screen is displayed for at least 5 seconds. If a network error is detected, a special dialog is displayed which lets the user open the proxy configuration page directly. Note that currently bitbake triggers the network tests only when the value of its TMPDIR variable changes, which happens fairly rare on my system. This is the subject of another bug (#3026). Version 2 of the patch splits the changes in two parts (sanity.bbclass belongs to oe-core). [YOCTO #3025] (Bitbake rev: b48f1351271cc066ffe919db112b14834a6d8f8f) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index ed55acc4fd..e8d7dc2ce2 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -43,7 +43,7 @@ class HobHandler(gobject.GObject):
43 (gobject.TYPE_STRING,)), 43 (gobject.TYPE_STRING,)),
44 "sanity-failed" : (gobject.SIGNAL_RUN_LAST, 44 "sanity-failed" : (gobject.SIGNAL_RUN_LAST,
45 gobject.TYPE_NONE, 45 gobject.TYPE_NONE,
46 (gobject.TYPE_STRING,)), 46 (gobject.TYPE_STRING, gobject.TYPE_INT)),
47 "generating-data" : (gobject.SIGNAL_RUN_LAST, 47 "generating-data" : (gobject.SIGNAL_RUN_LAST,
48 gobject.TYPE_NONE, 48 gobject.TYPE_NONE,
49 ()), 49 ()),
@@ -166,7 +166,6 @@ class HobHandler(gobject.GObject):
166 def handle_event(self, event): 166 def handle_event(self, event):
167 if not event: 167 if not event:
168 return 168 return
169
170 if self.building: 169 if self.building:
171 self.current_phase = "building" 170 self.current_phase = "building"
172 self.build.handle_event(event) 171 self.build.handle_event(event)
@@ -180,7 +179,7 @@ class HobHandler(gobject.GObject):
180 self.run_next_command() 179 self.run_next_command()
181 180
182 elif isinstance(event, bb.event.SanityCheckFailed): 181 elif isinstance(event, bb.event.SanityCheckFailed):
183 self.emit("sanity-failed", event._msg) 182 self.emit("sanity-failed", event._msg, event._network_error)
184 183
185 elif isinstance(event, logging.LogRecord): 184 elif isinstance(event, logging.LogRecord):
186 if not self.building: 185 if not self.building: