[oe-commits] Laurentiu Palcu : adt-installer: add sudo when relocating symlinks

git at git.openembedded.org git at git.openembedded.org
Mon Sep 24 10:35:49 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 28823486ba8ce4d88bbad3cea696ce9fba0cc165
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=28823486ba8ce4d88bbad3cea696ce9fba0cc165

Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date:   Sun Sep 23 17:14:27 2012 +0300

adt-installer: add sudo when relocating symlinks

This is needed if installation is done in a directory that needs root
privileges.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../adt-installer/scripts/adt_installer_internal   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
index 63fcf60..9a13573 100755
--- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
+++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
@@ -217,7 +217,7 @@ find $OECORE_NATIVE_SYSROOT -type f -exec file '{}' \;|grep ":.*ASCII.*text"|cut
 
 # change all symlinks pointing to /opt/${DISTRO}/${SDK_VERSION}
 for l in $(find $NATIVE_INSTALL_DIR -type l); do
-	ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l
+    $SUDO ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l
 done
 
 echo_info "\nSuccessfully installed selected native ADT!"





More information about the Openembedded-commits mailing list