Received: from mga01.intel.com ([192.55.52.88]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SDEDk-0007Ob-CH for bitbake-devel@lists.openembedded.org; Thu, 29 Mar 2012 14:12:52 +0200 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 29 Mar 2012 05:03:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="147406951" Received: from dongxiao-osel.sh.intel.com (HELO localhost) ([10.239.36.11]) by fmsmga002.fm.intel.com with ESMTP; 29 Mar 2012 05:03:49 -0700 From: Dongxiao Xu To: bitbake-devel@lists.openembedded.org Date: Thu, 29 Mar 2012 20:01:12 +0800 Message-Id: <4400a427306bb09d50f646be21da7e55fa7fc040.1333022081.git.dongxiao.xu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: In-Reply-To: References: Subject: [PATCH 06/14] Hob: Improve for init a new build X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2012 12:12:52 -0000 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) -- 1.7.4.1