summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-04-09 14:13:42 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-10 23:05:21 (GMT)
commit2176e1489471ba30b19e9657959d7fcbcf06384c (patch)
tree57631c9743fdf7c421d79b5104730aae6415a321
parentf511b8cd076d328ecf32337a57f9780b915bff94 (diff)
downloadpoky-2176e1489471ba30b19e9657959d7fcbcf06384c.tar.gz
Hob: clean up and unify get_parameters() to be get_parameters_sync()
(Bitbake rev: 16fecd0d0f95285bf774030cd24006206185faee) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 88a673a..a532d82 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -378,6 +378,9 @@ class Builder(gtk.Window):
378 self.hob_toolchain, 378 self.hob_toolchain,
379 toolchain_packages) 379 toolchain_packages)
380 380
381 def get_parameters_sync(self):
382 return self.handler.get_parameters()
383
381 def load_template(self, path): 384 def load_template(self, path):
382 self.template = TemplateMgr() 385 self.template = TemplateMgr()
383 self.template.load(path) 386 self.template.load(path)
@@ -507,18 +510,18 @@ class Builder(gtk.Window):
507 def handler_command_succeeded_cb(self, handler, initcmd): 510 def handler_command_succeeded_cb(self, handler, initcmd):
508 if initcmd == self.handler.PARSE_CONFIG: 511 if initcmd == self.handler.PARSE_CONFIG:
509 # settings 512 # settings
510 params = self.handler.get_parameters() 513 params = self.get_parameters_sync()
511 self.configuration = Configuration(params) 514 self.configuration = Configuration(params)
512 self.parameters = Parameters(params) 515 self.parameters = Parameters(params)
513 self.handler.generate_configuration() 516 self.handler.generate_configuration()
514 elif initcmd == self.handler.GENERATE_CONFIGURATION: 517 elif initcmd == self.handler.GENERATE_CONFIGURATION:
515 params = self.handler.get_parameters() 518 params = self.get_parameters_sync()
516 self.configuration.update(params) 519 self.configuration.update(params)
517 self.image_configuration_page.switch_machine_combo() 520 self.image_configuration_page.switch_machine_combo()
518 elif initcmd in [self.handler.GENERATE_RECIPES, 521 elif initcmd in [self.handler.GENERATE_RECIPES,
519 self.handler.GENERATE_PACKAGES, 522 self.handler.GENERATE_PACKAGES,
520 self.handler.GENERATE_IMAGE]: 523 self.handler.GENERATE_IMAGE]:
521 params = self.handler.get_parameters() 524 params = self.get_parameters_sync()
522 self.configuration.update(params) 525 self.configuration.update(params)
523 self.handler.request_package_info_async() 526 self.handler.request_package_info_async()
524 elif initcmd == self.handler.POPULATE_PACKAGEINFO: 527 elif initcmd == self.handler.POPULATE_PACKAGEINFO: