summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-15 14:24:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:17 +0000
commit27e172c3b63d002ef4376b29d0cb5e461ced3e58 (patch)
treef4be08fe22fdc06a4365350bab4e002e4b1376ad /scripts
parentec7b604b1e45b6d9d20e9cd8731002b488b20dd3 (diff)
downloadpoky-27e172c3b63d002ef4376b29d0cb5e461ced3e58.tar.gz
wic: remove PluginMgr.get_source_plugins
Used get_plugins('source') instead of get_source_plugins to unify and simplify API to get plugins. (From OE-Core rev: aaab003e472416124d7342fc8c4a17c252b83f4d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/engine.py2
-rw-r--r--scripts/lib/wic/partition.py2
-rw-r--r--scripts/lib/wic/plugin.py12
3 files changed, 2 insertions, 14 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
index 98e7b9526e..4d0901d0fb 100644
--- a/scripts/lib/wic/engine.py
+++ b/scripts/lib/wic/engine.py
@@ -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_plugins('source')
143 143
144 for plugin in plugins: 144 for plugin in plugins:
145 print(" %s" % plugin) 145 print(" %s" % plugin)
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index f8d4274bcd..d3cd5931f7 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -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_plugins('source')
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"
diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py
index 7632c3acd3..064243dc9d 100644
--- a/scripts/lib/wic/plugin.py
+++ b/scripts/lib/wic/plugin.py
@@ -109,18 +109,6 @@ class PluginMgr:
109 return pluginbase.get_plugins(ptype) 109 return pluginbase.get_plugins(ptype)
110 110
111 @classmethod 111 @classmethod
112 def get_source_plugins(cls):
113 """
114 Return list of available source plugins.
115 """
116 plugins_dir = cls._build_plugin_dir_list(cls.plugin_dir, 'source')
117
118 cls.append_dirs(plugins_dir)
119
120 return cls.get_plugins('source')
121
122
123 @classmethod
124 def get_source_plugin_methods(cls, source_name, methods): 112 def get_source_plugin_methods(cls, source_name, methods):
125 """ 113 """
126 The methods param is a dict with the method names to find. On 114 The methods param is a dict with the method names to find. On