From patchwork Mon Jan 3 20:01:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [03/12] image.bbclass: rm symlink destination via ln Date: Mon, 03 Jan 2011 20:01:57 -0000 From: Bernhard Reutner-Fischer X-Patchwork-Id: 159 Message-Id: <1294084926-3115-3-git-send-email-rep.dot.nop@gmail.com> To: openembedded-devel@lists.openembedded.org Rather than rm'ing the destination-file manually, do ln -f Signed-off-by: Bernhard Reutner-Fischer Acked-by: Roman I Khimov --- 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