summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-04-09 22:13:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:05:21 +0100
commit2176e1489471ba30b19e9657959d7fcbcf06384c (patch)
tree57631c9743fdf7c421d79b5104730aae6415a321
parentf511b8cd076d328ecf32337a57f9780b915bff94 (diff)
downloadpoky-2176e1489471ba30b19e9657959d7fcbcf06384c.tar.gz
poky-2176e1489471ba30b19e9657959d7fcbcf06384c.tar.bz2
poky-2176e1489471ba30b19e9657959d7fcbcf06384c.zip
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 88a673a044..a532d82995 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):
self.hob_toolchain,
toolchain_packages)
+ def get_parameters_sync(self):
+ return self.handler.get_parameters()
+
def load_template(self, path):
self.template = TemplateMgr()
self.template.load(path)
@@ -507,18 +510,18 @@ class Builder(gtk.Window):
def handler_command_succeeded_cb(self, handler, initcmd):
if initcmd == self.handler.PARSE_CONFIG:
# settings
- params = self.handler.get_parameters()
+ params = self.get_parameters_sync()
self.configuration = Configuration(params)
self.parameters = Parameters(params)
self.handler.generate_configuration()
elif initcmd == self.handler.GENERATE_CONFIGURATION:
- params = self.handler.get_parameters()
+ params = self.get_parameters_sync()
self.configuration.update(params)
self.image_configuration_page.switch_machine_combo()
elif initcmd in [self.handler.GENERATE_RECIPES,
self.handler.GENERATE_PACKAGES,
self.handler.GENERATE_IMAGE]:
- params = self.handler.get_parameters()
+ params = self.get_parameters_sync()
self.configuration.update(params)
self.handler.request_package_info_async()
elif initcmd == self.handler.POPULATE_PACKAGEINFO: