]> code.ossystems Code Review - openembedded-core.git/commitdiff
ADT: Bug fix for Suse Linux
authorLiping Ke <liping.ke@intel.com>
Wed, 2 Mar 2011 19:18:38 +0000 (03:18 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Mar 2011 23:13:33 +0000 (23:13 +0000)
On Suse linux11.2, we found when using sudo, we must add -E opts
to preserver some network proxy environment settings. Otherwise,
opkg-cl can't access files behind firewall. [bug #785]
Also, we need to add absolute path when sourcing files.
Fix for [bug #786]

Signed-off-by: Liping Ke <liping.ke@intel.com>
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
meta/recipes-devtools/installer/adt-installer/scripts/data_define

index b5e304d44211a7a4132d1145971eace5227b737b..df142ff31b185a14048892912d1e0d8e4066cb61 100755 (executable)
@@ -81,7 +81,7 @@ else
 fi
 
 #first update repository
-OPKG_CMD="sudo $LOCAL_OPKG_LOC/bin/opkg-cl"
+OPKG_CMD="sudo -E $LOCAL_OPKG_LOC/bin/opkg-cl"
 
 echo_info "Updating opkg..."
 $OPKG_CMD -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR update &>> $YOCTOADT_INSTALL_LOG_FILE
index 77f8b383f24602060d9e71815ad78f476dba280a..e29cc30918746c21d2a623bd48ac6cc1a6d25d6f 100644 (file)
@@ -23,7 +23,7 @@
 # THE SOFTWARE.
 
 config_file="adt_installer.conf"
-source $config_file
+source `eval echo $PWD`/$config_file
 
 LOCAL_OPKG_LOC="./opkg/build/opkg"
 LOCAL_OPKG_FOLDER="./opkg/build"