diff options
| -rwxr-xr-x | bitbake/bin/bitbake-layers | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 449434d468..d4b1d1aaf2 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
| @@ -68,11 +68,11 @@ def main(): | |||
| 68 | 68 | ||
| 69 | registered = False | 69 | registered = False |
| 70 | for plugin in plugins: | 70 | for plugin in plugins: |
| 71 | if hasattr(plugin, 'tinfoil_init'): | ||
| 72 | plugin.tinfoil_init(tinfoil) | ||
| 71 | if hasattr(plugin, 'register_commands'): | 73 | if hasattr(plugin, 'register_commands'): |
| 72 | registered = True | 74 | registered = True |
| 73 | plugin.register_commands(subparsers) | 75 | plugin.register_commands(subparsers) |
| 74 | if hasattr(plugin, 'tinfoil_init'): | ||
| 75 | plugin.tinfoil_init(tinfoil) | ||
| 76 | 76 | ||
| 77 | if not registered: | 77 | if not registered: |
| 78 | logger.error("No commands registered - missing plugins?") | 78 | logger.error("No commands registered - missing plugins?") |
