]> code.ossystems Code Review - openembedded-core.git/commit
wic: Make sure file exists before removing it
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 21 May 2015 07:29:52 +0000 (10:29 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 May 2015 06:56:12 +0000 (07:56 +0100)
commit75162b05b5ad9aac307f7911caecb2b8a017acbf
tree796a72ebfbbd839452b5897149169994b1c85901
parentf62255bfa6c5a322c867b7c4ea5686ea7bfab3fe
wic: Make sure file exists before removing it

Bunch of os.remove calls were added to the partition.py lately.
They're causing wic to fail with OSError: [Errno 2] No such file or directory
if file doesn't exist.

Added check for file existence to all recently added calls of
os.remove. That should fix this regression.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/kickstart/custom_commands/partition.py