diff options
Diffstat (limited to 'scripts/recipetool')
-rwxr-xr-x | scripts/recipetool | 6 |
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'): |