Skip to contentSkip to conversation

Allow Hob to run with sanity checks disabled

PATCH New Joshua Lock 1 participant 2 messages Apr 23, 2012

lore
Share & tools
lore
#0 lore raw

cover Allow Hob to run with sanity checks disabled

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(-)
Signature · 1 line
1.7.7.6
#1 lore raw

PATCH 1/1 hob: enable sanity checks after launch

To ensure the users configuration is sanity tested enable the sanity checks after the GUI has started but before any parsing is done.

---
 lib/bb/ui/crumbs/builder.py         |    2 ++
 lib/bb/ui/crumbs/hobeventhandler.py |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
lib/bb/ui/crumbs/builder.py +2 -0
index dd3ea95..cbcb3f1 100755
@@ -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)
lib/bb/ui/crumbs/hobeventhandler.py +3 -0
index ebfc388..c918aad 100644
@@ -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)])
 
Signature · 1 line
1.7.7.6