diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-15 14:16:38 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:17 +0000 |
| commit | ec7b604b1e45b6d9d20e9cd8731002b488b20dd3 (patch) | |
| tree | 3b1fb256a72663b5707462d5c194cf7ae24dbc8c /scripts/lib/wic/help.py | |
| parent | f8a4bd99503f5b63bbc748fedd4b7f32afbf0cb7 (diff) | |
| download | poky-ec7b604b1e45b6d9d20e9cd8731002b488b20dd3.tar.gz | |
wic: use PluginMgr directly
Instead of making a singleton object of PluginMgr class
it's simpler to use PluginMgr class directly as any class
is a singleton.
(From OE-Core rev: cbe7dbd31f2292416d8e801e142679c69d9a44bc)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/help.py')
| -rw-r--r-- | scripts/lib/wic/help.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 47e3d1666b..4aba12de75 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | import subprocess | 28 | import subprocess |
| 29 | import logging | 29 | import logging |
| 30 | 30 | ||
| 31 | from wic.plugin import pluginmgr, PLUGIN_TYPES | 31 | from wic.plugin import PluginMgr, PLUGIN_TYPES |
| 32 | 32 | ||
| 33 | logger = logging.getLogger('wic') | 33 | logger = logging.getLogger('wic') |
| 34 | 34 | ||
| @@ -68,7 +68,7 @@ def get_wic_plugins_help(): | |||
| 68 | result = wic_plugins_help | 68 | result = wic_plugins_help |
| 69 | for plugin_type in PLUGIN_TYPES: | 69 | for plugin_type in PLUGIN_TYPES: |
| 70 | result += '\n\n%s PLUGINS\n\n' % plugin_type.upper() | 70 | result += '\n\n%s PLUGINS\n\n' % plugin_type.upper() |
| 71 | for name, plugin in pluginmgr.get_plugins(plugin_type).items(): | 71 | for name, plugin in PluginMgr.get_plugins(plugin_type).items(): |
| 72 | result += "\n %s plugin:\n" % name | 72 | result += "\n %s plugin:\n" % name |
| 73 | if plugin.__doc__: | 73 | if plugin.__doc__: |
| 74 | result += plugin.__doc__ | 74 | result += plugin.__doc__ |
