* [PATCH 0/1] image.py: check file exists before deleting
@ 2014-03-28 13:07 Laurentiu Palcu
2014-03-28 13:07 ` [PATCH 1/1] " Laurentiu Palcu
0 siblings, 1 reply; 2+ messages in thread
From: Laurentiu Palcu @ 2014-03-28 13:07 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 8c3eb5ee4582b6f6d489549290937657f37fc19e:
packagegroup-toolset-native: Update after ocf-linux -> cryptodev-linux change (2014-03-27 19:53:30 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib lpalcu/b6029_ignore_broken_symlinks
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lpalcu/b6029_ignore_broken_symlinks
Laurentiu Palcu (1):
image.py: check file exists before deleting
meta/lib/oe/image.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] image.py: check file exists before deleting
2014-03-28 13:07 [PATCH 0/1] image.py: check file exists before deleting Laurentiu Palcu
@ 2014-03-28 13:07 ` Laurentiu Palcu
0 siblings, 0 replies; 2+ messages in thread
From: Laurentiu Palcu @ 2014-03-28 13:07 UTC (permalink / raw)
To: openembedded-core
When RM_OLD_IMAGE = "1", we delete old images but we didn't check they
actually exist...
[YOCTO #6029]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
meta/lib/oe/image.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index a03b73e..c9b9033 100644
--- a/meta/lib/oe/image.py
+++ b/meta/lib/oe/image.py
@@ -192,7 +192,8 @@ class Image(ImageDepGraph):
if img.find(self.d.getVar('IMAGE_LINK_NAME', True)) == 0:
img = os.path.join(deploy_dir, img)
if os.path.islink(img):
- if self.d.getVar('RM_OLD_IMAGE', True) == "1":
+ if self.d.getVar('RM_OLD_IMAGE', True) == "1" and \
+ os.path.exists(os.path.realpath(img)):
os.remove(os.path.realpath(img))
os.remove(img)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-28 13:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-28 13:07 [PATCH 0/1] image.py: check file exists before deleting Laurentiu Palcu
2014-03-28 13:07 ` [PATCH 1/1] " Laurentiu Palcu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox