]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
hob: enable sanity checks after launch
authorJoshua Lock <josh@linux.intel.com>
Mon, 23 Apr 2012 21:35:44 +0000 (14:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Apr 2012 22:03:25 +0000 (23:03 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/crumbs/builder.py
lib/bb/ui/crumbs/hobeventhandler.py

index dd3ea95a8fac946ae058d5c5e52389926a9b3651..cbcb3f19650d322c4886f8f8567e3aa90cac827f 100755 (executable)
@@ -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)
index ebfc388f736bcf43d704cdb7f673d6e43b34f66a..c918aad8dcb9a2ca3d42abb80c394082868f8a21 100644 (file)
@@ -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)])