diff options
author | Shane Wang <shane.wang@intel.com> | 2012-02-29 22:15:06 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-01 15:51:32 +0000 |
commit | 23efe612f6a71386737a5a5ae2a6c00c9276c212 (patch) | |
tree | 614f1bd84637bd39162ed019635fc799e312ecc7 /bitbake | |
parent | edf394240348d307f2e292e25f5c7c3b00c4415c (diff) | |
download | poky-23efe612f6a71386737a5a5ae2a6c00c9276c212.tar.gz |
Hob: fix a bug in builder.configuration.curr_mach
When the user changes the machine to be "--select a machine--", the builder.configuration.curr_mach should be set to empty.
Otherwise, if the user adds more layers after the above, the action will trigger recipe parsing, which is not correct.
(Bitbake rev: d5c7c9471b8e101ebcb91d707415b9c820b1419f)
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index 40833607d5..cd86606170 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |||
@@ -243,6 +243,7 @@ class ImageConfigurationPage (HobPage): | |||
243 | def machine_combo_changed_cb(self, machine_combo): | 243 | def machine_combo_changed_cb(self, machine_combo): |
244 | combo_item = machine_combo.get_active_text() | 244 | combo_item = machine_combo.get_active_text() |
245 | if not combo_item or combo_item == self.__dummy_machine__: | 245 | if not combo_item or combo_item == self.__dummy_machine__: |
246 | self.builder.configuration.curr_mach = "" | ||
246 | self.builder.switch_page(self.builder.MACHINE_SELECTION) | 247 | self.builder.switch_page(self.builder.MACHINE_SELECTION) |
247 | else: | 248 | else: |
248 | self.builder.configuration.curr_mach = combo_item | 249 | self.builder.configuration.curr_mach = combo_item |