summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2012-11-20 10:09:18 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-25 21:36:44 +0000
commit8a3dd9e9081d09f9c38c98b34f14bbd2a9b824a5 (patch)
treea0cb9fadd357bd2561f1217aae7b589d3365c518 /bitbake/lib
parentf26d3e8d5f735c7439bed234d0eb030215cded98 (diff)
downloadpoky-8a3dd9e9081d09f9c38c98b34f14bbd2a9b824a5.tar.gz
bitbake: hob/builder: Don't rerun sanity checks
Run the sanity check only once [YOCTO #3377] (Bitbake rev: 0db80d57d4d2b1bb97375444c439827450ff33d1) Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index ec3ff30488..d10c681df9 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -439,6 +439,9 @@ class Builder(gtk.Window):
439 # Indicate whether the UI is working 439 # Indicate whether the UI is working
440 self.sensitive = True 440 self.sensitive = True
441 441
442 # Indicate whether the sanity check ran
443 self.sanity_checked = False
444
442 # create visual elements 445 # create visual elements
443 self.create_visual_elements() 446 self.create_visual_elements()
444 447
@@ -543,7 +546,8 @@ class Builder(gtk.Window):
543 sanity_check_post_func = func 546 sanity_check_post_func = func
544 547
545 def generate_configuration(self): 548 def generate_configuration(self):
546 self.show_sanity_check_page() 549 if not self.sanity_checked:
550 self.show_sanity_check_page()
547 self.handler.generate_configuration() 551 self.handler.generate_configuration()
548 552
549 def initiate_new_build_async(self): 553 def initiate_new_build_async(self):
@@ -835,7 +839,9 @@ class Builder(gtk.Window):
835 if not self.configuration.curr_mach: 839 if not self.configuration.curr_mach:
836 self.configuration.curr_mach = self.handler.runCommand(["getVariable", "HOB_MACHINE"]) or "" 840 self.configuration.curr_mach = self.handler.runCommand(["getVariable", "HOB_MACHINE"]) or ""
837 self.update_configuration_parameters(self.get_parameters_sync()) 841 self.update_configuration_parameters(self.get_parameters_sync())
838 self.sanity_check() 842 if not self.sanity_checked:
843 self.sanity_check()
844 self.sanity_checked = True
839 elif initcmd == self.handler.SANITY_CHECK: 845 elif initcmd == self.handler.SANITY_CHECK:
840 if self.had_network_error: 846 if self.had_network_error:
841 self.had_network_error = False 847 self.had_network_error = False