From 23efe612f6a71386737a5a5ae2a6c00c9276c212 Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Wed, 29 Feb 2012 22:15:06 +0800 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake') 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): 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 -- cgit v1.2.3-54-g00ecf