[oe-commits] Bernhard Reutner-Fischer : image.bbclass: rm symlink destination via ln

git version control git at git.openembedded.org
Fri Jan 7 22:45:51 UTC 2011


Module: openembedded.git
Branch: master
Commit: ffdf56431d26ce54377d672764a8bba61dcaf853
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ffdf56431d26ce54377d672764a8bba61dcaf853

Author: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Date:   Tue Jan  4 04:01:57 2011 +0000

image.bbclass: rm symlink destination via ln

Rather than rm'ing the destination-file manually, do ln -f

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Acked-by: Roman I Khimov <khimov at altell.ru>
Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 classes/image.bbclass |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/classes/image.bbclass b/classes/image.bbclass
index 7c1f3e1..db13dd0 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -140,8 +140,7 @@ def get_imagecmds(d):
         cmd  = "\t#Code for image type " + type + "\n"
         cmd += "\t${IMAGE_CMD_" + type + "}\n"
         cmd += "\tcd ${DEPLOY_DIR_IMAGE}/\n"
-        cmd += "\trm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}." + type + "\n"
-        cmd += "\tln -s ${IMAGE_NAME}.rootfs." + type + " ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}." + type + "\n\n"
+        cmd += "\tln -fs ${IMAGE_NAME}.rootfs." + type + " ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}." + type + "\n\n"
         cmds += bb.data.expand(cmd, localdata)
     return cmds
 





More information about the Openembedded-commits mailing list