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>
This commit is contained in:
Shane Wang
2012-02-29 22:15:06 +08:00
committed by Richard Purdie
parent edf3942403
commit 23efe612f6

View File

@@ -243,6 +243,7 @@ class ImageConfigurationPage (HobPage):
def machine_combo_changed_cb(self, machine_combo):
combo_item = machine_combo.get_active_text()
if not combo_item or combo_item == self.__dummy_machine__:
self.builder.configuration.curr_mach = ""
self.builder.switch_page(self.builder.MACHINE_SELECTION)
else:
self.builder.configuration.curr_mach = combo_item