summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/installer/adt-installer/adt_installer
diff options
context:
space:
mode:
authorLiping Ke <liping.ke@intel.com>2011-03-02 01:24:22 +0800
committerSaul Wold <sgw@linux.intel.com>2011-03-02 09:48:50 -0800
commit231fcc8b5bbdab0ce5be552039a29c4d4400d996 (patch)
tree5ef754aef9a56032c56cd3a3281da4726f862d9b /meta/recipes-devtools/installer/adt-installer/adt_installer
parent0af09206acbf3b9cde581088e4430f1e8dc3bf2e (diff)
downloadopenembedded-core-231fcc8b5bbdab0ce5be552039a29c4d4400d996.tar.gz
openembedded-core-231fcc8b5bbdab0ce5be552039a29c4d4400d996.tar.bz2
openembedded-core-231fcc8b5bbdab0ce5be552039a29c4d4400d996.tar.xz
openembedded-core-231fcc8b5bbdab0ce5be552039a29c4d4400d996.zip
ADT: Fix several bugs for adt installer
Two bugs are found 1) image download file path is not correct. So even if file is downloaded already, it can't be detected. 2) several images now are renamed, such as sato-dev, sato-sdk, we need to change the name accordingly. Signed-off-by: Liping Ke <liping.ke@intel.com>
Diffstat (limited to 'meta/recipes-devtools/installer/adt-installer/adt_installer')
-rwxr-xr-xmeta/recipes-devtools/installer/adt-installer/adt_installer9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer
index 1f481ded6..cca576f7e 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -216,17 +216,18 @@ done
download_file()
{
-if [ -f "$LOCAL_DOWNLOAD/$1" ]; then
- confirm_download $1
+local filename=`echo ${1##*/}`
+if [ -f "$LOCAL_DOWNLOAD/$filename" ]; then
+ confirm_download $filename
result="$?"
if [ ! "$result" == "0" ]; then
return
else
echo "Removing old file [$1]"
- rm -rf "$LOCAL_DOWNLOAD/$1"
+ rm -rf "$LOCAL_DOWNLOAD/$filename"
fi
fi
-echo_info "Downloading file: $1..."
+echo_info "Downloading file: $filename..."
wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
}