1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

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>
This commit is contained in:
Ed Bartosh
2017-02-15 14:16:38 +02:00
committed by Richard Purdie
parent f8a4bd9950
commit ec7b604b1e
5 changed files with 46 additions and 55 deletions
+2 -2
View File
@@ -28,7 +28,7 @@
import subprocess
import logging
from wic.plugin import pluginmgr, PLUGIN_TYPES
from wic.plugin import PluginMgr, PLUGIN_TYPES
logger = logging.getLogger('wic')
@@ -68,7 +68,7 @@ def get_wic_plugins_help():
result = wic_plugins_help
for plugin_type in PLUGIN_TYPES:
result += '\n\n%s PLUGINS\n\n' % plugin_type.upper()
for name, plugin in pluginmgr.get_plugins(plugin_type).items():
for name, plugin in PluginMgr.get_plugins(plugin_type).items():
result += "\n %s plugin:\n" % name
if plugin.__doc__:
result += plugin.__doc__