summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/builder.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-01 20:14:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-05 14:00:26 +0100
commitc77321180bcf30827e5d81026e03db9af56d4464 (patch)
tree3080040c1b93afc7d059778c51f69b1bc1ee31b0 /bitbake/lib/bb/ui/crumbs/builder.py
parent5607729d9901c394b7cd4db6e38fe7fb19116f39 (diff)
downloadpoky-c77321180bcf30827e5d81026e03db9af56d4464.tar.gz
Hob: Fix MACHINE setting
Define the empty curr_mach to be "" instead of None. Fix the judgement for ' if self.curr_mach == "" ' to be ' if self.curr_mach '. Also set machine to bitbake server when "MACHINE" is not empty. (Bitbake rev: 662fa1b126d5b9b3a80193205c22b2fe29305185) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/builder.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index c1a75bde1a..02c9a9cb49 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -519,7 +519,7 @@ class Builder(gtk.Window):
519 response = dialog.run() 519 response = dialog.run()
520 dialog.destroy() 520 dialog.destroy()
521 self.handler.clear_busy() 521 self.handler.clear_busy()
522 self.configuration.curr_mach = None 522 self.configuration.curr_mach = ""
523 self.image_configuration_page.switch_machine_combo() 523 self.image_configuration_page.switch_machine_combo()
524 self.switch_page(self.MACHINE_SELECTION) 524 self.switch_page(self.MACHINE_SELECTION)
525 525
@@ -868,7 +868,7 @@ class Builder(gtk.Window):
868 868
869 def reparse_post_adv_settings(self): 869 def reparse_post_adv_settings(self):
870 # DO reparse recipes 870 # DO reparse recipes
871 if self.configuration.curr_mach == "": 871 if not self.configuration.curr_mach:
872 self.switch_page(self.MACHINE_SELECTION) 872 self.switch_page(self.MACHINE_SELECTION)
873 else: 873 else:
874 self.switch_page(self.RCPPKGINFO_POPULATING) 874 self.switch_page(self.RCPPKGINFO_POPULATING)