diff options
-rw-r--r-- | meta/lib/oe/image.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py index a03b73e4c0..c9b9033132 100644 --- a/meta/lib/oe/image.py +++ b/meta/lib/oe/image.py | |||
@@ -192,7 +192,8 @@ class Image(ImageDepGraph): | |||
192 | if img.find(self.d.getVar('IMAGE_LINK_NAME', True)) == 0: | 192 | if img.find(self.d.getVar('IMAGE_LINK_NAME', True)) == 0: |
193 | img = os.path.join(deploy_dir, img) | 193 | img = os.path.join(deploy_dir, img) |
194 | if os.path.islink(img): | 194 | if os.path.islink(img): |
195 | if self.d.getVar('RM_OLD_IMAGE', True) == "1": | 195 | if self.d.getVar('RM_OLD_IMAGE', True) == "1" and \ |
196 | os.path.exists(os.path.realpath(img)): | ||
196 | os.remove(os.path.realpath(img)) | 197 | os.remove(os.path.realpath(img)) |
197 | 198 | ||
198 | os.remove(img) | 199 | os.remove(img) |