summaryrefslogtreecommitdiffstats
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-01 10:01:40 -0800
commita8a305a8cac7ea4ea41b4587c55de8137dc389fb (patch)
treeb917288802da8740d9079cd292dde147a37460b7 /meta/recipes-devtools/installer/adt-installer/adt_installer
parent87e8e1b31c3b37b82766fff00050930e04c37219 (diff)
downloadpoky-a8a305a8cac7ea4ea41b4587c55de8137dc389fb.tar.gz
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 1f481ded61..cca576f7ef 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -216,17 +216,18 @@ done
216 216
217download_file() 217download_file()
218{ 218{
219if [ -f "$LOCAL_DOWNLOAD/$1" ]; then 219local filename=`echo ${1##*/}`
220 confirm_download $1 220if [ -f "$LOCAL_DOWNLOAD/$filename" ]; then
221 confirm_download $filename
221 result="$?" 222 result="$?"
222 if [ ! "$result" == "0" ]; then 223 if [ ! "$result" == "0" ]; then
223 return 224 return
224 else 225 else
225 echo "Removing old file [$1]" 226 echo "Removing old file [$1]"
226 rm -rf "$LOCAL_DOWNLOAD/$1" 227 rm -rf "$LOCAL_DOWNLOAD/$filename"
227 fi 228 fi
228fi 229fi
229echo_info "Downloading file: $1..." 230echo_info "Downloading file: $filename..."
230wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE" 231wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
231} 232}
232 233