Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] adt-installer: add sudo when relocating symlinks
@ 2012-09-23 14:14 Laurentiu Palcu
  2012-09-24 10:17 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Laurentiu Palcu @ 2012-09-23 14:14 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 .../adt-installer/scripts/adt_installer_internal   |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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!"
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] adt-installer: add sudo when relocating symlinks
  2012-09-23 14:14 [PATCH] adt-installer: add sudo when relocating symlinks Laurentiu Palcu
@ 2012-09-24 10:17 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-09-24 10:17 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: openembedded-core

On Sun, 2012-09-23 at 17:14 +0300, Laurentiu Palcu wrote:
> This is needed if installation is done in a directory that needs root
> privileges.
> 
> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
> ---
>  .../adt-installer/scripts/adt_installer_internal   |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-24 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-23 14:14 [PATCH] adt-installer: add sudo when relocating symlinks Laurentiu Palcu
2012-09-24 10:17 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox