From patchwork Thu Mar 29 12:01:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,06/14] Hob: Improve for init a new build Date: Thu, 29 Mar 2012 12:01:12 -0000 From: Dongxiao Xu X-Patchwork-Id: 24819 Message-Id: <4400a427306bb09d50f646be21da7e55fa7fc040.1333022081.git.dongxiao.xu@intel.com> To: bitbake-devel@lists.openembedded.org After a successful build, user can initiate a new build by clicking "Build a new image" button. The previous solution is simply switch to the first screen and unset MACHINE. This commit will try to re-init everything for the new build. Signed-off-by: Dongxiao Xu --- lib/bb/ui/crumbs/builder.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py index 6b56a25..eeaa278 100755 --- a/lib/bb/ui/crumbs/builder.py +++ b/lib/bb/ui/crumbs/builder.py @@ -932,7 +932,9 @@ class Builder(gtk.Window): self.switch_page(self.RECIPE_SELECTION) def initiate_new_build(self): - self.configuration.curr_mach = "" + self.handler.init_cooker() + self.handler.set_extra_inherit("image_types") + self.handler.parse_config() self.image_configuration_page.switch_machine_combo() self.switch_page(self.MACHINE_SELECTION)