]> code.ossystems Code Review - openembedded-core.git/commitdiff
adt_installer: not download repo page
authorChong Lu <Chong.Lu@windriver.com>
Fri, 4 Jul 2014 08:45:16 +0000 (16:45 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Jul 2014 10:19:50 +0000 (11:19 +0100)
Add "--spider" argument to wget command, since we don't need to download
repo page, just check that it is there.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/installer/adt-installer/adt_installer

index 7fc37f82fc13d127a165f8341180b838154107a7..24db2479102cc96c9200b9444d0f8ca39e0ab592 100755 (executable)
@@ -379,8 +379,8 @@ validate_config
 check_result
 
 #check adt_repo exist
-wget $YOCTOADT_REPO 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
-if grep -q "ERROR 404: Not Found" $YOCTOADT_INSTALL_LOG_FILE; then
+wget --spider $YOCTOADT_REPO 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
+if grep -q "404 Not Found" $YOCTOADT_INSTALL_LOG_FILE; then
   echo -e "[ADT_INST] Error: YOCTOADT_REPO does not exist: $YOCTOADT_REPO"
   echo -e "\n#############################################################################"
   echo -e "# Meet error(s) when installing Yocto ADT! Please check log file for details. "