]> code.ossystems Code Review - openembedded-core.git/commitdiff
adt-installer: do not dereference symlinks when relocating
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Tue, 30 Apr 2013 15:02:10 +0000 (18:02 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 May 2013 16:40:51 +0000 (17:40 +0100)
This was already fixed for meta-toolchain.

[YOCTO #4157]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal

index b80a7ed11d0357bba52dbb522f68976144a44960..4322964b21c98df515e2c51d9eddb3c0c934b505 100755 (executable)
@@ -217,7 +217,7 @@ find $OECORE_NATIVE_SYSROOT -type f -exec file '{}' \;|grep ":.*\(ASCII\|script\
 
 # change all symlinks pointing to /opt/${DISTRO}/${SDK_VERSION}
 for l in $(find $NATIVE_INSTALL_DIR -type l); do
-    $SUDO ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l
+    $SUDO ln -sfn $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l
 done
 
 echo_info "\nSuccessfully installed selected native ADT!"