Patchwork [bitbake-devel,1/1] hob: enable sanity checks after launch

login
register
mail settings
Submitter Joshua Lock
Date April 23, 2012, 9:35 p.m.
Message ID <f547f934aea9c4aec5f84403cb27904bd4a4e6b9.1335216391.git.josh@linux.intel.com>
Download mbox | patch
Permalink /patch/26349/
State Accepted
Commit 244ce2b900ae6cecbeeccfe2056e61c132476261
Headers show

Comments

Joshua Lock - April 23, 2012, 9:35 p.m.
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(-)

Patch

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)])