mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ec7b604b1e
commit
27e172c3b6
@@ -139,7 +139,7 @@ def list_source_plugins():
|
|||||||
"""
|
"""
|
||||||
List the available source plugins i.e. plugins available for --source.
|
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:
|
for plugin in plugins:
|
||||||
print(" %s" % plugin)
|
print(" %s" % plugin)
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class Partition():
|
|||||||
break
|
break
|
||||||
return
|
return
|
||||||
|
|
||||||
plugins = PluginMgr.get_source_plugins()
|
plugins = PluginMgr.get_plugins('source')
|
||||||
|
|
||||||
if self.source not in plugins:
|
if self.source not in plugins:
|
||||||
raise WicError("The '%s' --source specified for %s doesn't exist.\n\t"
|
raise WicError("The '%s' --source specified for %s doesn't exist.\n\t"
|
||||||
|
|||||||
@@ -108,18 +108,6 @@ class PluginMgr:
|
|||||||
|
|
||||||
return pluginbase.get_plugins(ptype)
|
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
|
@classmethod
|
||||||
def get_source_plugin_methods(cls, source_name, methods):
|
def get_source_plugin_methods(cls, source_name, methods):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user