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>
This commit is contained in:
parent
f26d3e8d5f
commit
8a3dd9e908
|
@ -439,6 +439,9 @@ class Builder(gtk.Window):
|
||||||
# Indicate whether the UI is working
|
# Indicate whether the UI is working
|
||||||
self.sensitive = True
|
self.sensitive = True
|
||||||
|
|
||||||
|
# Indicate whether the sanity check ran
|
||||||
|
self.sanity_checked = False
|
||||||
|
|
||||||
# create visual elements
|
# create visual elements
|
||||||
self.create_visual_elements()
|
self.create_visual_elements()
|
||||||
|
|
||||||
|
@ -543,7 +546,8 @@ class Builder(gtk.Window):
|
||||||
sanity_check_post_func = func
|
sanity_check_post_func = func
|
||||||
|
|
||||||
def generate_configuration(self):
|
def generate_configuration(self):
|
||||||
self.show_sanity_check_page()
|
if not self.sanity_checked:
|
||||||
|
self.show_sanity_check_page()
|
||||||
self.handler.generate_configuration()
|
self.handler.generate_configuration()
|
||||||
|
|
||||||
def initiate_new_build_async(self):
|
def initiate_new_build_async(self):
|
||||||
|
@ -835,7 +839,9 @@ class Builder(gtk.Window):
|
||||||
if not self.configuration.curr_mach:
|
if not self.configuration.curr_mach:
|
||||||
self.configuration.curr_mach = self.handler.runCommand(["getVariable", "HOB_MACHINE"]) or ""
|
self.configuration.curr_mach = self.handler.runCommand(["getVariable", "HOB_MACHINE"]) or ""
|
||||||
self.update_configuration_parameters(self.get_parameters_sync())
|
self.update_configuration_parameters(self.get_parameters_sync())
|
||||||
self.sanity_check()
|
if not self.sanity_checked:
|
||||||
|
self.sanity_check()
|
||||||
|
self.sanity_checked = True
|
||||||
elif initcmd == self.handler.SANITY_CHECK:
|
elif initcmd == self.handler.SANITY_CHECK:
|
||||||
if self.had_network_error:
|
if self.had_network_error:
|
||||||
self.had_network_error = False
|
self.had_network_error = False
|
||||||
|
|
Loading…
Reference in New Issue