diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-03-29 20:01:12 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-29 21:25:53 +0100 |
commit | 72bc345f85f107da95761870e8cbe4694e3c8960 (patch) | |
tree | 73c10355b5055e1425b9c455025d438802b2020b | |
parent | 1da504536af83a8d72673a8090bbd5b8cd38e1f3 (diff) | |
download | poky-72bc345f85f107da95761870e8cbe4694e3c8960.tar.gz |
Hob: Improve for init a new build
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.
(Bitbake rev: df63e15c41d129fe0cff6b8ab3c97434c4809c83)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 7deffdc145..1a37ff982d 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -946,7 +946,9 @@ class Builder(gtk.Window): | |||
946 | self.switch_page(self.RECIPE_SELECTION) | 946 | self.switch_page(self.RECIPE_SELECTION) |
947 | 947 | ||
948 | def initiate_new_build(self): | 948 | def initiate_new_build(self): |
949 | self.configuration.curr_mach = "" | 949 | self.handler.init_cooker() |
950 | self.handler.set_extra_inherit("image_types") | ||
951 | self.handler.parse_config() | ||
950 | self.image_configuration_page.switch_machine_combo() | 952 | self.image_configuration_page.switch_machine_combo() |
951 | self.switch_page(self.MACHINE_SELECTION) | 953 | self.switch_page(self.MACHINE_SELECTION) |
952 | 954 | ||