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 | |
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')
-rw-r--r-- | scripts/lib/wic/errors.py (renamed from scripts/lib/wic/utils/errors.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/plugin.py | 4 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | 2 | ||||
-rwxr-xr-x | scripts/wic | 3 |
6 files changed, 6 insertions, 7 deletions
diff --git a/scripts/lib/wic/utils/errors.py b/scripts/lib/wic/errors.py index d1b514dd9d..d1b514dd9d 100644 --- a/scripts/lib/wic/utils/errors.py +++ b/scripts/lib/wic/errors.py | |||
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 | ||
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 2e2d26ad7d..e51c8be298 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -33,11 +33,11 @@ import uuid | |||
33 | 33 | ||
34 | from time import strftime | 34 | from time import strftime |
35 | 35 | ||
36 | from wic.errors import ImageError | ||
36 | from wic.filemap import sparse_copy | 37 | from wic.filemap import sparse_copy |
37 | from wic.ksparser import KickStart, KickStartError | 38 | from wic.ksparser import KickStart, KickStartError |
38 | from wic.plugin import pluginmgr | 39 | from wic.plugin import pluginmgr |
39 | from wic.pluginbase import ImagerPlugin | 40 | from wic.pluginbase import ImagerPlugin |
40 | from wic.utils.errors import ImageError | ||
41 | from wic.utils.misc import get_bitbake_var, exec_cmd, exec_native_cmd | 41 | from wic.utils.misc import get_bitbake_var, exec_cmd, exec_native_cmd |
42 | 42 | ||
43 | logger = logging.getLogger('wic') | 43 | logger = logging.getLogger('wic') |
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index 590d3d6784..8f53fa2a48 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
@@ -29,8 +29,8 @@ import os | |||
29 | import sys | 29 | import sys |
30 | 30 | ||
31 | from wic.engine import get_custom_config | 31 | from wic.engine import get_custom_config |
32 | from wic.errors import ImageError | ||
32 | from wic.utils import runner | 33 | from wic.utils import runner |
33 | from wic.utils.errors import ImageError | ||
34 | from wic.pluginbase import SourcePlugin | 34 | from wic.pluginbase import SourcePlugin |
35 | from wic.utils.misc import (exec_cmd, exec_native_cmd, | 35 | from wic.utils.misc import (exec_cmd, exec_native_cmd, |
36 | get_bitbake_var, BOOTDD_EXTRA_SPACE) | 36 | get_bitbake_var, BOOTDD_EXTRA_SPACE) |
diff --git a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py index ed5fbdfa9c..850aa5aaf1 100644 --- a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py +++ b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | |||
@@ -23,9 +23,9 @@ import os | |||
23 | import re | 23 | import re |
24 | import sys | 24 | import sys |
25 | 25 | ||
26 | from wic.errors import ImageError | ||
26 | from wic.utils import runner | 27 | from wic.utils import runner |
27 | from wic.utils.misc import get_bitbake_var, exec_cmd, exec_native_cmd | 28 | from wic.utils.misc import get_bitbake_var, exec_cmd, exec_native_cmd |
28 | from wic.utils.errors import ImageError | ||
29 | from wic.pluginbase import SourcePlugin | 29 | from wic.pluginbase import SourcePlugin |
30 | 30 | ||
31 | logger = logging.getLogger('wic') | 31 | logger = logging.getLogger('wic') |
diff --git a/scripts/wic b/scripts/wic index 10ce440529..d14671769d 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -53,8 +53,8 @@ if bitbake_exe: | |||
53 | else: | 53 | else: |
54 | bitbake_main = None | 54 | bitbake_main = None |
55 | 55 | ||
56 | from wic.errors import WicError | ||
56 | from wic.utils.misc import get_bitbake_var, BB_VARS | 57 | from wic.utils.misc import get_bitbake_var, BB_VARS |
57 | from wic.utils.errors import WicError | ||
58 | from wic import engine | 58 | from wic import engine |
59 | from wic import help as hlp | 59 | from wic import help as hlp |
60 | 60 | ||
@@ -339,4 +339,3 @@ if __name__ == "__main__": | |||
339 | except WicError as err: | 339 | except WicError as err: |
340 | logger.error(err) | 340 | logger.error(err) |
341 | sys.exit(1) | 341 | sys.exit(1) |
342 | |||