summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-30 19:33:19 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-12 22:48:30 +0100
commit9485888656ea15f111413497943eafcaba023f9c (patch)
tree8b0366099560bc2ab988cc19d1202c205544c9e6 /scripts/lib/scriptutils.py
parent996ec1798e709d38a26d8871132cdc06310c9423 (diff)
downloadpoky-9485888656ea15f111413497943eafcaba023f9c.tar.gz
devtool: make plugin_init optional
So far all devtool and recipetool plugins were expected to have plugin_init function. This function is empty in most of plugins as they don't require initialisation. Making plugin_init optional would allow not having empty plugin_init in every plugin. (From OE-Core rev: b99640c89f067866b264f4ee4030fae4c2f338c0) Signed-off-by: Ed Bartosh <ed.bartosh@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/lib/scriptutils.py')
-rw-r--r--scripts/lib/scriptutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py
index 5d103a58fe..3366882635 100644
--- a/scripts/lib/scriptutils.py
+++ b/scripts/lib/scriptutils.py
@@ -57,7 +57,7 @@ def load_plugins(logger, plugins, pluginpath):
57 plugin = load_plugin(name) 57 plugin = load_plugin(name)
58 if hasattr(plugin, 'plugin_init'): 58 if hasattr(plugin, 'plugin_init'):
59 plugin.plugin_init(plugins) 59 plugin.plugin_init(plugins)
60 plugins.append(plugin) 60 plugins.append(plugin)
61 61
62def git_convert_standalone_clone(repodir): 62def git_convert_standalone_clone(repodir):
63 """If specified directory is a git repository, ensure it's a standalone clone""" 63 """If specified directory is a git repository, ensure it's a standalone clone"""