summaryrefslogtreecommitdiff
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 10:42:30 +0000
commitcbe7dbd31f2292416d8e801e142679c69d9a44bc (patch)
treed5be186a9640e0c682ff827138c2940c3e198fbc /scripts/lib/wic/partition.py
parent15442d072bb6d93bd9b941726f93262503053da5 (diff)
downloadopenembedded-core-cbe7dbd31f2292416d8e801e142679c69d9a44bc.tar.gz
openembedded-core-cbe7dbd31f2292416d8e801e142679c69d9a44bc.tar.bz2
openembedded-core-cbe7dbd31f2292416d8e801e142679c69d9a44bc.zip
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. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
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
from wic import WicError
from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var
-from wic.plugin import pluginmgr
+from wic.plugin import PluginMgr
logger = logging.getLogger('wic')
@@ -154,7 +154,7 @@ class Partition():
break
return
- plugins = pluginmgr.get_source_plugins()
+ plugins = PluginMgr.get_source_plugins()
if self.source not in plugins:
raise WicError("The '%s' --source specified for %s doesn't exist.\n\t"
@@ -176,7 +176,7 @@ class Partition():
"do_configure_partition": None
}
- methods = pluginmgr.get_source_plugin_methods(self.source,
+ methods = PluginMgr.get_source_plugin_methods(self.source,
partition_methods)
methods["do_configure_partition"](self, srcparams_dict, creator,
cr_workdir, oe_builddir, bootimg_dir,