]> 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>
Sun, 9 Aug 2015 23:36:57 +0000 (16:36 -0700)
commit41f08393643ceb2607cad44d2c485b3dc9da7ec9
tree7ad2991798666a4e22ff239ba9f1b7366aff3827
parent8bea23a89968db3d44b9fae2ceb242dfd89a4880
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.

(From OE-Core rev: 75162b05b5ad9aac307f7911caecb2b8a017acbf)

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>
scripts/lib/wic/kickstart/custom_commands/partition.py