[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [PATCH] image_types.bbclass: fix link creation failure if the target already exists
From:       ynezz () true ! cz (=?UTF-8?q?Petr=20=C5=A0tetiar?=)
Date:       2012-02-29 20:33:15
Message-ID: 1330547595-11631-1-git-send-email-ynezz () true ! cz
[Download RAW message or body]

| ln: failed to create symbolic link `beagleboard/systemd-image-beagleboard.tar.bz2': File exists
NOTE: package systemd-image-1.0-r0: task do_rootfs: Failed

Signed-off-by: Petr ?tetiar <ynezz at true.cz>
---
 meta/classes/image_types.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 5b48a09..adab573 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -61,7 +61,7 @@ runimagecmd () {
         # And create the symlinks
         if [ -n "${IMAGE_LINK_NAME}" ]; then
             for type in ${subimages}; do
-                ln -s ${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type
+                ln -fs ${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type
             done
         fi
 }
-- 
1.7.9




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic