From 7414ba713d2f701b7fcaae3bfc77479a1373d52f Mon Sep 17 00:00:00 2001 From: Bogdan Marinescu Date: Wed, 26 Sep 2012 16:59:57 +0300 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/event.py') diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index deb1c21595..1889d09e1d 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py @@ -562,6 +562,7 @@ class SanityCheckFailed(Event): """ Event to indicate sanity check has failed """ - def __init__(self, msg): + def __init__(self, msg, network_error=False): Event.__init__(self) self._msg = msg + self._network_error = network_error -- cgit v1.2.3-54-g00ecf