diff options
author | Ross Burton <ross.burton@intel.com> | 2016-04-13 12:14:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-14 10:58:27 +0100 |
commit | 018e3f9f215607a1d7c9fb7780236cc467f3103b (patch) | |
tree | ea9841d7dc24a0e227daea059735a2902a890484 /scripts/lib/wic/plugin.py | |
parent | b4744ffb94f76f2be138f2f9bd04153034bf62df (diff) | |
download | openembedded-core-018e3f9f215607a1d7c9fb7780236cc467f3103b.tar.gz openembedded-core-018e3f9f215607a1d7c9fb7780236cc467f3103b.tar.bz2 openembedded-core-018e3f9f215607a1d7c9fb7780236cc467f3103b.zip |
rootfs-postcommands: handle broken links when writing manifest
If the manifest link is broken then os.path.exists() returns False so the link
isn't removed, resulting in the os.symlink() call failing as the file already
exists. Prevent this by using os.path.lexists to check that the symlink itself
exists, not the target.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic/plugin.py')
0 files changed, 0 insertions, 0 deletions