summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/partition.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-15 14:16:38 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:17 +0000
commitec7b604b1e45b6d9d20e9cd8731002b488b20dd3 (patch)
tree3b1fb256a72663b5707462d5c194cf7ae24dbc8c /scripts/lib/wic/partition.py
parentf8a4bd99503f5b63bbc748fedd4b7f32afbf0cb7 (diff)
downloadpoky-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/partition.py')
-rw-r--r--scripts/lib/wic/partition.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 8e531e4dcc..f8d4274bcd 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -30,7 +30,7 @@ import tempfile
30 30
31from wic import WicError 31from wic import WicError
32from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var 32from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var
33from wic.plugin import pluginmgr 33from wic.plugin import PluginMgr
34 34
35logger = logging.getLogger('wic') 35logger = logging.getLogger('wic')
36 36
@@ -154,7 +154,7 @@ class Partition():
154 break 154 break
155 return 155 return
156 156
157 plugins = pluginmgr.get_source_plugins() 157 plugins = PluginMgr.get_source_plugins()
158 158
159 if self.source not in plugins: 159 if self.source not in plugins:
160 raise WicError("The '%s' --source specified for %s doesn't exist.\n\t" 160 raise WicError("The '%s' --source specified for %s doesn't exist.\n\t"
@@ -176,7 +176,7 @@ class Partition():
176 "do_configure_partition": None 176 "do_configure_partition": None
177 } 177 }
178 178
179 methods = pluginmgr.get_source_plugin_methods(self.source, 179 methods = PluginMgr.get_source_plugin_methods(self.source,
180 partition_methods) 180 partition_methods)
181 methods["do_configure_partition"](self, srcparams_dict, creator, 181 methods["do_configure_partition"](self, srcparams_dict, creator,
182 cr_workdir, oe_builddir, bootimg_dir, 182 cr_workdir, oe_builddir, bootimg_dir,