diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-05 09:13:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:59:11 +0100 |
commit | dec9156ce86eb00153493d3d49344f0623ec4562 (patch) | |
tree | 86a74bda320f47dbfd9c4d1df8cd9082d42e3db9 /scripts/lib/wic/utils/partitionedfs.py | |
parent | 77e9243210b2283a5fbd3f40e7823a211d2be233 (diff) | |
download | poky-dec9156ce86eb00153493d3d49344f0623ec4562.tar.gz |
wic: move checks to exec_native_cmd
Checked for return code and output of native commands
inside exec_native_cmd.
Removed similar code from a lot of places where
exec_native_cmd is called.
(From OE-Core rev: 9e3e933321d58c04619a585326fb291dbf2748f5)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/utils/partitionedfs.py')
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index eacf2679d2..8fd44a6a96 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
@@ -227,17 +227,7 @@ class Image: | |||
227 | args = ' '.join(args) | 227 | args = ' '.join(args) |
228 | msger.debug(args) | 228 | msger.debug(args) |
229 | 229 | ||
230 | rc, out = exec_native_cmd(args, self.native_sysroot) | 230 | exec_native_cmd(args, self.native_sysroot) |
231 | |||
232 | if out: | ||
233 | msger.debug('"parted" output: %s' % out) | ||
234 | |||
235 | if rc != 0: | ||
236 | # We don't throw exception when return code is not 0, because | ||
237 | # parted always fails to reload part table with loop devices. This | ||
238 | # prevents us from distinguishing real errors based on return | ||
239 | # code. | ||
240 | msger.error("WARNING: parted returned '%s' instead of 0 (use --debug for details)" % rc) | ||
241 | 231 | ||
242 | def __create_partition(self, device, parttype, fstype, start, size): | 232 | def __create_partition(self, device, parttype, fstype, start, size): |
243 | """ Create a partition on an image described by the 'device' object. """ | 233 | """ Create a partition on an image described by the 'device' object. """ |