]> code.ossystems Code Review - openembedded-core.git/commit
populate_sdk_base, adt_installer_internal: fix issue on older distributions
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Thu, 6 Dec 2012 13:16:32 +0000 (15:16 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2012 14:07:28 +0000 (14:07 +0000)
commite7e23a1e5aae4028e21e37ec09e9d431a9adfbcb
tree2a217cd3733ba28f4db21cb420bc5482d15943a6
parent63fd76190f503660119dcc8efdcfc6fbff406c26
populate_sdk_base, adt_installer_internal: fix issue on older distributions

This patch addresses an SDK installer issue on older distributions if
the installation takes place in another directory than the default one. In
fact, is all about the 'file' utility version used for determining if a
file is a text file. For example, for a perl script, newer 'file' versions
return:
"...script, ASCII text executable"
while older versions return:
"...script text executable"
Hence the regex pattern didn't match the scripts.

Also the patch contains two unrelated minor fixes:
 * return an exit code of 1 instead of -1 when installation machine is
   not supported. That because on an older distribution we also get this
   error message: "exit: 9: Illegal number: -1";
 * remove unnecessary $SUDO_EXEC prefix to grep;

[YOCTO #3538]

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