ADT: Bug fix for Suse Linux

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]

(From OE-Core rev: 794da1a4cffaedc8a9ceeb0b089d7236b22e7913)

Signed-off-by: Liping Ke <liping.ke@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Liping Ke
2011-03-03 03:18:38 +08:00
committed by Saul Wold
parent 00d70680f9
commit 976cb2d81d
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View 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"