diff options
Diffstat (limited to 'meta/recipes-devtools/installer/adt-installer/adt_installer')
-rwxr-xr-x | meta/recipes-devtools/installer/adt-installer/adt_installer | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer index 9336b9ec68..1dd07b7f34 100755 --- a/meta/recipes-devtools/installer/adt-installer/adt_installer +++ b/meta/recipes-devtools/installer/adt-installer/adt_installer | |||
@@ -228,7 +228,7 @@ if [ -f "$LOCAL_DOWNLOAD/$filename" ]; then | |||
228 | fi | 228 | fi |
229 | fi | 229 | fi |
230 | echo_info "Downloading file: $filename..." | 230 | echo_info "Downloading file: $filename..." |
231 | wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE" | 231 | wget "$YOCTOADT_REPO/rootfs/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE" |
232 | } | 232 | } |
233 | 233 | ||
234 | 234 | ||
@@ -339,6 +339,17 @@ user_inst_type="$?" | |||
339 | 339 | ||
340 | validate_config | 340 | validate_config |
341 | check_result | 341 | check_result |
342 | |||
343 | #check adt_repo exist | ||
344 | wget $YOCTOADT_REPO 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE" | ||
345 | if grep -q "ERROR 404: Not Found" $YOCTOADT_INSTALL_LOG_FILE; then | ||
346 | echo -e "[ADT_INST] Error: YOCTOADT_REPO does not exist: $YOCTOADT_REPO" | ||
347 | echo -e "\n#############################################################################" | ||
348 | echo -e "# Meet error(s) when installing Yocto ADT! Please check log file for details. " | ||
349 | echo -e "#############################################################################\n" | ||
350 | exit -1 | ||
351 | fi | ||
352 | |||
342 | #firstly we need to install opkg host | 353 | #firstly we need to install opkg host |
343 | install_opkg | 354 | install_opkg |
344 | 355 | ||