* [PATCH 0/1] Allow Hob to run with sanity checks disabled
@ 2012-04-23 21:35 Joshua Lock
2012-04-23 21:35 ` [PATCH 1/1] hob: enable sanity checks after launch Joshua Lock
0 siblings, 1 reply; 2+ messages in thread
From: Joshua Lock @ 2012-04-23 21:35 UTC (permalink / raw)
To: bitbake-devel
Currently sanity check failures prevent Hob from launching, however we want
users to be able to change the various sanity failure causing settings - such
as proxy configuration - from the GUI.
This change and a related set of changes to OE-Core allow Hob to start with the
sanity checks disabled and enable them once the GUI is in place to a) report
errors and b) affect settings.
In tandem with an OE-Core change fixes [YOCTO #2361].
Regards,
Joshua
The following changes since commit 1a39698ab8498410d159c665c015f9297f153797:
lib/bb/ui/crumbs/recipeselectionpage: fix type availabel->available (2012-04-17 16:41:30 +0100)
are available in the git repository at:
git://github.com/incandescant/bitbake josh/hob
https://github.com/incandescant/bitbake/tree/josh/hob
Joshua Lock (1):
hob: enable sanity checks after launch
lib/bb/ui/crumbs/builder.py | 2 ++
lib/bb/ui/crumbs/hobeventhandler.py | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
--
1.7.7.6
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] hob: enable sanity checks after launch
2012-04-23 21:35 [PATCH 0/1] Allow Hob to run with sanity checks disabled Joshua Lock
@ 2012-04-23 21:35 ` Joshua Lock
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Lock @ 2012-04-23 21:35 UTC (permalink / raw)
To: bitbake-devel
To ensure the users configuration is sanity tested enable the sanity
checks after the GUI has started but before any parsing is done.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
lib/bb/ui/crumbs/builder.py | 2 ++
lib/bb/ui/crumbs/hobeventhandler.py | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py
index dd3ea95..cbcb3f1 100755
--- a/lib/bb/ui/crumbs/builder.py
+++ b/lib/bb/ui/crumbs/builder.py
@@ -557,6 +557,8 @@ class Builder(gtk.Window):
self.handler.init_cooker()
# set bb layers
self.handler.set_bblayers(self.configuration.layers)
+ # Re-enable sanity checks
+ self.handler.enable_sanity()
# set local configuration
self.handler.set_machine(self.configuration.curr_mach)
self.handler.set_package_format(self.configuration.curr_package_format)
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index ebfc388..c918aad 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -233,6 +233,9 @@ class HobHandler(gobject.GObject):
inherits = inherits + " " + bbclass
self.runCommand(["setVariable", "INHERIT", inherits])
+ def enable_sanity(self):
+ self.runCommand(["setVariable", "DISABLE_SANITY_CHECKS", "0"])
+
def set_bblayers(self, bblayers):
self.runCommand(["setVariable", "BBLAYERS_HOB", " ".join(bblayers)])
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-23 21:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 21:35 [PATCH 0/1] Allow Hob to run with sanity checks disabled Joshua Lock
2012-04-23 21:35 ` [PATCH 1/1] hob: enable sanity checks after launch Joshua Lock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.