diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-15 14:24:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 10:42:30 +0000 |
commit | aaab003e472416124d7342fc8c4a17c252b83f4d (patch) | |
tree | 34cf33b45894ddb4ba9e312844ecb1bbd20a72b0 /scripts/lib/wic | |
parent | cbe7dbd31f2292416d8e801e142679c69d9a44bc (diff) | |
download | openembedded-core-aaab003e472416124d7342fc8c4a17c252b83f4d.tar.gz openembedded-core-aaab003e472416124d7342fc8c4a17c252b83f4d.tar.bz2 openembedded-core-aaab003e472416124d7342fc8c4a17c252b83f4d.zip |
wic: remove PluginMgr.get_source_plugins
Used get_plugins('source') instead of get_source_plugins to
unify and simplify API to get plugins.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/engine.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/partition.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugin.py | 12 |
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(): """ List the available source plugins i.e. plugins available for --source. """ - plugins = PluginMgr.get_source_plugins() + plugins = PluginMgr.get_plugins('source') for plugin in plugins: 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(): break return - plugins = PluginMgr.get_source_plugins() + plugins = PluginMgr.get_plugins('source') if self.source not in plugins: 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: return pluginbase.get_plugins(ptype) @classmethod - def get_source_plugins(cls): - """ - Return list of available source plugins. - """ - plugins_dir = cls._build_plugin_dir_list(cls.plugin_dir, 'source') - - cls.append_dirs(plugins_dir) - - return cls.get_plugins('source') - - - @classmethod def get_source_plugin_methods(cls, source_name, methods): """ The methods param is a dict with the method names to find. On |