adt-installer: check if sudo is needed when installing target sysroot
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Wed, 25 Sep 2013 15:40:28 +0000 (15:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Sep 2013 15:37:56 +0000 (16:37 +0100)
commitf80792709f444978b068ee047f7577bc2d7cbbf8
tree5de3e22796e7c9f973d038c34a1d2fc3966a9030
parent91fdb8158136cef27c01906b3d85920c5dd5568a
adt-installer: check if sudo is needed when installing target sysroot

Currently, if SDK is installed in a directory that needs sudo
preivileges, the target sysroot is also installed with sudo, even though
the location is in users's home directory.

This patch reuses the ownership checking code and uses it to check if
sudo is needed for target sysroot too.

[YOCTO #5259]

(From OE-Core rev: 5acfced041477d8c272485196e87ad601a0ce5b4)

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