Patchwork [bitbake-devel,06/14] Hob: Improve for init a new build

login
register
mail settings
Submitter Dongxiao Xu
Date March 29, 2012, 12:01 p.m.
Message ID <4400a427306bb09d50f646be21da7e55fa7fc040.1333022081.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/24819/
State Accepted
Commit df63e15c41d129fe0cff6b8ab3c97434c4809c83
Headers show

Comments

Dongxiao Xu - March 29, 2012, 12:01 p.m.
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 <dongxiao.xu@intel.com>
---
 lib/bb/ui/crumbs/builder.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

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)