summaryrefslogtreecommitdiff
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:30:55 +0000
commit1047f6592ac81643cd847f104da766dc4a4c81ea (patch)
tree34cc3242d3647b8c10a48fe7f0ddfe85ff50c2d9 /scripts/recipetool
parent7c33ef77fa165182d24f0a9ae769e9e630e6bd47 (diff)
downloadopenembedded-core-1047f6592ac81643cd847f104da766dc4a4c81ea.tar.gz
openembedded-core-1047f6592ac81643cd847f104da766dc4a4c81ea.tar.bz2
openembedded-core-1047f6592ac81643cd847f104da766dc4a4c81ea.zip
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.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
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():
registered = False
for plugin in plugins:
- if hasattr(plugin, 'register_command'):
+ if hasattr(plugin, 'register_commands'):
+ registered = True
+ plugin.register_commands(subparsers)
+ elif hasattr(plugin, 'register_command'):
+ # Legacy function name
registered = True
plugin.register_command(subparsers)
if hasattr(plugin, 'tinfoil_init'):