diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-14 23:47:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:17 +0000 |
commit | af17aa91b32421100d8898a7c95049068e8e0e26 (patch) | |
tree | d322e68977a5626ad04ac119bc565b829e02f530 /scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | |
parent | 8da175607c0d3434428a3bf4ee1549919b698709 (diff) | |
download | poky-af17aa91b32421100d8898a7c95049068e8e0e26.tar.gz |
wic: raise WicError instead of ImageError and CreatorError
There is no need to raise special exceptions. Raising
WicError should be enough.
(From OE-Core rev: b952076cc9f458c3d5eb03e12dc3ec316a44804c)
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/plugins/source/rootfs_pcbios_ext.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py index 4cc3a39856..cf0eec2fe3 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 ImageError, WicError | 25 | from wic.errors 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 |
@@ -210,4 +210,4 @@ class RootfsPlugin(SourcePlugin): | |||
210 | 210 | ||
211 | ret_code = runner.show(['dd', 'if=%s' % mbrfile, 'of=%s' % full_path, 'conv=notrunc']) | 211 | ret_code = runner.show(['dd', 'if=%s' % mbrfile, 'of=%s' % full_path, 'conv=notrunc']) |
212 | if ret_code != 0: | 212 | if ret_code != 0: |
213 | raise ImageError("Unable to set MBR to %s" % full_path) | 213 | raise WicError("Unable to set MBR to %s" % full_path) |