summaryrefslogtreecommitdiffstats
path: root/scripts/recipetool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-11-23 08:55:45 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:32:05 +0000
commit0cc381029936f34da30a65122c6d952954e07178 (patch)
treec59ecc75425d7a497f94cacda79fa444e02d76e5 /scripts/recipetool
parentb381f804a541bb1d08e331c139a82e250f924c05 (diff)
downloadpoky-0cc381029936f34da30a65122c6d952954e07178.tar.gz
recipetool: make plugin registration function name consistent with devtool
This should have been register_commands rather than register_command; I used register_commands in devtool so lets change this here to be consistent with that. (Since this is extensible through layers though we need to remain compatible with the old name, so fall back to that if the new function name isn't there.) (From OE-Core rev: 1047f6592ac81643cd847f104da766dc4a4c81ea) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/recipetool')
-rwxr-xr-xscripts/recipetool6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/recipetool b/scripts/recipetool
index 4af0bfb686..791a66aaca 100755
--- a/scripts/recipetool
+++ b/scripts/recipetool
@@ -82,7 +82,11 @@ def main():
82 82
83 registered = False 83 registered = False
84 for plugin in plugins: 84 for plugin in plugins:
85 if hasattr(plugin, 'register_command'): 85 if hasattr(plugin, 'register_commands'):
86 registered = True
87 plugin.register_commands(subparsers)
88 elif hasattr(plugin, 'register_command'):
89 # Legacy function name
86 registered = True 90 registered = True
87 plugin.register_command(subparsers) 91 plugin.register_command(subparsers)
88 if hasattr(plugin, 'tinfoil_init'): 92 if hasattr(plugin, 'tinfoil_init'):