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/engine.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/engine.py')
-rw-r--r-- | scripts/lib/wic/engine.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index c29924b781..98e7b9526e 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
@@ -32,7 +32,7 @@ import logging | |||
32 | import os | 32 | import os |
33 | 33 | ||
34 | from wic import WicError | 34 | from wic import WicError |
35 | from wic.plugin import pluginmgr | 35 | from wic.plugin import PluginMgr |
36 | from wic.utils.misc import get_bitbake_var | 36 | from wic.utils.misc import get_bitbake_var |
37 | 37 | ||
38 | logger = logging.getLogger('wic') | 38 | logger = logging.getLogger('wic') |
@@ -139,7 +139,7 @@ def list_source_plugins(): | |||
139 | """ | 139 | """ |
140 | List the available source plugins i.e. plugins available for --source. | 140 | List the available source plugins i.e. plugins available for --source. |
141 | """ | 141 | """ |
142 | plugins = pluginmgr.get_source_plugins() | 142 | plugins = PluginMgr.get_source_plugins() |
143 | 143 | ||
144 | for plugin in plugins: | 144 | for plugin in plugins: |
145 | print(" %s" % plugin) | 145 | print(" %s" % plugin) |
@@ -185,7 +185,7 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, | |||
185 | os.makedirs(options.outdir) | 185 | os.makedirs(options.outdir) |
186 | 186 | ||
187 | pname = 'direct' | 187 | pname = 'direct' |
188 | plugin_class = pluginmgr.get_plugins('imager').get(pname) | 188 | plugin_class = PluginMgr.get_plugins('imager').get(pname) |
189 | if not plugin_class: | 189 | if not plugin_class: |
190 | raise WicError('Unknown plugin: %s' % pname) | 190 | raise WicError('Unknown plugin: %s' % pname) |
191 | 191 | ||