diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-15 00:07:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:17 +0000 |
commit | f8a4bd99503f5b63bbc748fedd4b7f32afbf0cb7 (patch) | |
tree | 83d71805728280c9d95400833d3cf291269692e0 /scripts/lib | |
parent | af17aa91b32421100d8898a7c95049068e8e0e26 (diff) | |
download | poky-f8a4bd99503f5b63bbc748fedd4b7f32afbf0cb7.tar.gz |
wic: move WicError to lib/wic/__init__.py
Removed unused exceptions from error.py
Moved definition of WicError to lib/wic/__init__.py
(From OE-Core rev: 15442d072bb6d93bd9b941726f93262503053da5)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/__init__.py | 20 | ||||
-rw-r--r-- | scripts/lib/wic/engine.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/errors.py | 29 | ||||
-rw-r--r-- | scripts/lib/wic/partition.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugin.py | 3 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-partition.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/fsimage.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/isoimage-isohybrid.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/rawcopy.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/rootfs.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/utils/misc.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/utils/runner.py | 2 |
16 files changed, 34 insertions, 44 deletions
diff --git a/scripts/lib/wic/__init__.py b/scripts/lib/wic/__init__.py index e69de29bb2..85876b138c 100644 --- a/scripts/lib/wic/__init__.py +++ b/scripts/lib/wic/__init__.py | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/usr/bin/env python -tt | ||
2 | # | ||
3 | # Copyright (c) 2007 Red Hat, Inc. | ||
4 | # Copyright (c) 2011 Intel, Inc. | ||
5 | # | ||
6 | # This program is free software; you can redistribute it and/or modify it | ||
7 | # under the terms of the GNU General Public License as published by the Free | ||
8 | # Software Foundation; version 2 of the License | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, but | ||
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
12 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
13 | # for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License along | ||
16 | # with this program; if not, write to the Free Software Foundation, Inc., 59 | ||
17 | # Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | class WicError(Exception): | ||
20 | pass | ||
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index 38a68ed340..c29924b781 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
@@ -31,7 +31,7 @@ | |||
31 | import logging | 31 | import logging |
32 | import os | 32 | import os |
33 | 33 | ||
34 | from wic.errors import WicError | 34 | from wic import WicError |
35 | from wic.plugin import pluginmgr | 35 | from wic.plugin import pluginmgr |
36 | from wic.utils.misc import get_bitbake_var | 36 | from wic.utils.misc import get_bitbake_var |
37 | 37 | ||
diff --git a/scripts/lib/wic/errors.py b/scripts/lib/wic/errors.py deleted file mode 100644 index d1b514dd9d..0000000000 --- a/scripts/lib/wic/errors.py +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | #!/usr/bin/env python -tt | ||
2 | # | ||
3 | # Copyright (c) 2007 Red Hat, Inc. | ||
4 | # Copyright (c) 2011 Intel, Inc. | ||
5 | # | ||
6 | # This program is free software; you can redistribute it and/or modify it | ||
7 | # under the terms of the GNU General Public License as published by the Free | ||
8 | # Software Foundation; version 2 of the License | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, but | ||
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
12 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
13 | # for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License along | ||
16 | # with this program; if not, write to the Free Software Foundation, Inc., 59 | ||
17 | # Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | class WicError(Exception): | ||
20 | pass | ||
21 | |||
22 | class CreatorError(WicError): | ||
23 | pass | ||
24 | |||
25 | class Usage(WicError): | ||
26 | pass | ||
27 | |||
28 | class ImageError(WicError): | ||
29 | pass | ||
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index e100377933..8e531e4dcc 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -28,7 +28,7 @@ import logging | |||
28 | import os | 28 | import os |
29 | import tempfile | 29 | import tempfile |
30 | 30 | ||
31 | from wic.errors import WicError | 31 | from wic import WicError |
32 | from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var | 32 | from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var |
33 | from wic.plugin import pluginmgr | 33 | from wic.plugin import pluginmgr |
34 | 34 | ||
diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py index 0e98da5c7a..ac55ecf545 100644 --- a/scripts/lib/wic/plugin.py +++ b/scripts/lib/wic/plugin.py | |||
@@ -19,8 +19,7 @@ import os | |||
19 | import sys | 19 | import sys |
20 | import logging | 20 | import logging |
21 | 21 | ||
22 | from wic.errors import WicError | 22 | from wic import pluginbase, WicError |
23 | from wic import pluginbase | ||
24 | from wic.utils.misc import get_bitbake_var | 23 | from wic.utils.misc import get_bitbake_var |
25 | 24 | ||
26 | __ALL__ = ['PluginMgr', 'pluginmgr'] | 25 | __ALL__ = ['PluginMgr', 'pluginmgr'] |
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 5b20ca9c5b..6d1ed8c205 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -32,7 +32,7 @@ import uuid | |||
32 | 32 | ||
33 | from time import strftime | 33 | from time import strftime |
34 | 34 | ||
35 | from wic.errors import WicError | 35 | from wic import WicError |
36 | from wic.filemap import sparse_copy | 36 | from wic.filemap import sparse_copy |
37 | from wic.ksparser import KickStart, KickStartError | 37 | from wic.ksparser import KickStart, KickStartError |
38 | from wic.plugin import pluginmgr | 38 | from wic.plugin import pluginmgr |
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 1f018fabf4..2d793a5cb7 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py | |||
@@ -28,7 +28,7 @@ import logging | |||
28 | import os | 28 | import os |
29 | import shutil | 29 | import shutil |
30 | 30 | ||
31 | from wic.errors import WicError | 31 | from wic import WicError |
32 | from wic.engine import get_custom_config | 32 | from wic.engine import get_custom_config |
33 | from wic.pluginbase import SourcePlugin | 33 | from wic.pluginbase import SourcePlugin |
34 | from wic.utils.misc import (exec_cmd, exec_native_cmd, get_bitbake_var, | 34 | from wic.utils.misc import (exec_cmd, exec_native_cmd, get_bitbake_var, |
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py index e9724a63a3..373e8d8f75 100644 --- a/scripts/lib/wic/plugins/source/bootimg-partition.py +++ b/scripts/lib/wic/plugins/source/bootimg-partition.py | |||
@@ -29,7 +29,7 @@ import re | |||
29 | 29 | ||
30 | from glob import glob | 30 | from glob import glob |
31 | 31 | ||
32 | from wic.errors import WicError | 32 | from wic import WicError |
33 | from wic.pluginbase import SourcePlugin | 33 | from wic.pluginbase import SourcePlugin |
34 | from wic.utils.misc import exec_cmd, get_bitbake_var | 34 | from wic.utils.misc import exec_cmd, get_bitbake_var |
35 | 35 | ||
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index c3a0e4eb42..74c75a054e 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
@@ -27,8 +27,8 @@ | |||
27 | import logging | 27 | import logging |
28 | import os | 28 | import os |
29 | 29 | ||
30 | from wic import WicError | ||
30 | from wic.engine import get_custom_config | 31 | from wic.engine import get_custom_config |
31 | from wic.errors import WicError | ||
32 | from wic.utils import runner | 32 | from wic.utils import runner |
33 | from wic.pluginbase import SourcePlugin | 33 | from wic.pluginbase import SourcePlugin |
34 | from wic.utils.misc import (exec_cmd, exec_native_cmd, | 34 | from wic.utils.misc import (exec_cmd, exec_native_cmd, |
diff --git a/scripts/lib/wic/plugins/source/fsimage.py b/scripts/lib/wic/plugins/source/fsimage.py index 67fc6d1b04..8fbe44d975 100644 --- a/scripts/lib/wic/plugins/source/fsimage.py +++ b/scripts/lib/wic/plugins/source/fsimage.py | |||
@@ -18,7 +18,7 @@ | |||
18 | import logging | 18 | import logging |
19 | import os | 19 | import os |
20 | 20 | ||
21 | from wic.errors import WicError | 21 | from wic import WicError |
22 | from wic.pluginbase import SourcePlugin | 22 | from wic.pluginbase import SourcePlugin |
23 | from wic.utils.misc import get_bitbake_var | 23 | from wic.utils.misc import get_bitbake_var |
24 | 24 | ||
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py index df86acc0e0..1ceba62be0 100644 --- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py +++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py | |||
@@ -26,7 +26,7 @@ import os | |||
26 | import re | 26 | import re |
27 | import shutil | 27 | import shutil |
28 | 28 | ||
29 | from wic.errors import WicError | 29 | from wic import WicError |
30 | from wic.engine import get_custom_config | 30 | from wic.engine import get_custom_config |
31 | from wic.pluginbase import SourcePlugin | 31 | from wic.pluginbase import SourcePlugin |
32 | from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var | 32 | from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var |
diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py index 561280977a..12348ae35e 100644 --- a/scripts/lib/wic/plugins/source/rawcopy.py +++ b/scripts/lib/wic/plugins/source/rawcopy.py | |||
@@ -18,7 +18,7 @@ | |||
18 | import logging | 18 | import logging |
19 | import os | 19 | import os |
20 | 20 | ||
21 | from wic.errors import WicError | 21 | from wic import WicError |
22 | from wic.pluginbase import SourcePlugin | 22 | from wic.pluginbase import SourcePlugin |
23 | from wic.utils.misc import exec_cmd, get_bitbake_var | 23 | from wic.utils.misc import exec_cmd, get_bitbake_var |
24 | from wic.filemap import sparse_copy | 24 | from wic.filemap import sparse_copy |
diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py index f7ca569604..f2e2ca8a2b 100644 --- a/scripts/lib/wic/plugins/source/rootfs.py +++ b/scripts/lib/wic/plugins/source/rootfs.py | |||
@@ -31,7 +31,7 @@ import shutil | |||
31 | 31 | ||
32 | from oe.path import copyhardlinktree | 32 | from oe.path import copyhardlinktree |
33 | 33 | ||
34 | from wic.errors import WicError | 34 | from wic import WicError |
35 | from wic.pluginbase import SourcePlugin | 35 | from wic.pluginbase import SourcePlugin |
36 | from wic.utils.misc import get_bitbake_var, exec_cmd | 36 | from wic.utils.misc import get_bitbake_var, exec_cmd |
37 | 37 | ||
diff --git a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py index cf0eec2fe3..94f80d07ae 100644 --- a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py +++ b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | |||
@@ -22,7 +22,7 @@ import logging | |||
22 | import os | 22 | import os |
23 | import re | 23 | import re |
24 | 24 | ||
25 | from wic.errors import WicError | 25 | from wic import WicError |
26 | from wic.utils import runner | 26 | from wic.utils import runner |
27 | from wic.utils.misc import get_bitbake_var, exec_cmd, exec_native_cmd | 27 | from wic.utils.misc import get_bitbake_var, exec_cmd, exec_native_cmd |
28 | from wic.pluginbase import SourcePlugin | 28 | from wic.pluginbase import SourcePlugin |
diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py index 94fdab2669..4b822f0eee 100644 --- a/scripts/lib/wic/utils/misc.py +++ b/scripts/lib/wic/utils/misc.py | |||
@@ -33,7 +33,7 @@ import re | |||
33 | from collections import defaultdict | 33 | from collections import defaultdict |
34 | from distutils import spawn | 34 | from distutils import spawn |
35 | 35 | ||
36 | from wic.errors import WicError | 36 | from wic import WicError |
37 | from wic.utils import runner | 37 | from wic.utils import runner |
38 | 38 | ||
39 | logger = logging.getLogger('wic') | 39 | logger = logging.getLogger('wic') |
diff --git a/scripts/lib/wic/utils/runner.py b/scripts/lib/wic/utils/runner.py index 5ede1929a3..56d7ea3adf 100644 --- a/scripts/lib/wic/utils/runner.py +++ b/scripts/lib/wic/utils/runner.py | |||
@@ -19,7 +19,7 @@ import logging | |||
19 | import os | 19 | import os |
20 | import subprocess | 20 | import subprocess |
21 | 21 | ||
22 | from wic.errors import WicError | 22 | from wic import WicError |
23 | 23 | ||
24 | logger = logging.getLogger('wic') | 24 | logger = logging.getLogger('wic') |
25 | 25 | ||