diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-14 21:31:05 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:16 +0000 |
| commit | 79c066b2988295cfa8b727d289b7251e40451586 (patch) | |
| tree | 910b76c9b0cfa288f26a43224779952520957d61 /scripts/lib/wic/plugin.py | |
| parent | 28014087b8091e61c992aa66d4feef55a433e704 (diff) | |
| download | poky-79c066b2988295cfa8b727d289b7251e40451586.tar.gz | |
wic: move errors module
Moved from lib/wic/utils/ to lib/wic as this is a core module.
(From OE-Core rev: 808c70b81de5c3cfc3dcb01f08213e2ea33b7252)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugin.py')
| -rw-r--r-- | scripts/lib/wic/plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py index 70d337789f..31311adb55 100644 --- a/scripts/lib/wic/plugin.py +++ b/scripts/lib/wic/plugin.py | |||
| @@ -19,8 +19,8 @@ import os | |||
| 19 | import sys | 19 | import sys |
| 20 | import logging | 20 | import logging |
| 21 | 21 | ||
| 22 | from wic.errors import CreatorError | ||
| 22 | from wic import pluginbase | 23 | from wic import pluginbase |
| 23 | from wic.utils import errors | ||
| 24 | from wic.utils.misc import get_bitbake_var | 24 | from wic.utils.misc import get_bitbake_var |
| 25 | 25 | ||
| 26 | __ALL__ = ['PluginMgr', 'pluginmgr'] | 26 | __ALL__ = ['PluginMgr', 'pluginmgr'] |
| @@ -110,7 +110,7 @@ class PluginMgr(): | |||
| 110 | """ the return value is dict of name:class pairs """ | 110 | """ the return value is dict of name:class pairs """ |
| 111 | 111 | ||
| 112 | if ptype not in PLUGIN_TYPES: | 112 | if ptype not in PLUGIN_TYPES: |
| 113 | raise errors.CreatorError('%s is not valid plugin type' % ptype) | 113 | raise CreatorError('%s is not valid plugin type' % ptype) |
| 114 | 114 | ||
| 115 | plugins_dir = self._build_plugin_dir_list(self.plugin_dir, ptype) | 115 | plugins_dir = self._build_plugin_dir_list(self.plugin_dir, ptype) |
| 116 | 116 | ||
