[OE-core] [PATCH 4/4] adt_installer: not download repo page

Chong Lu Chong.Lu at windriver.com
Fri Jul 4 08:45:16 UTC 2014


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 at windriver.com>
---
 meta/recipes-devtools/installer/adt-installer/adt_installer | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer
index 7fc37f8..24db247 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -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. "
-- 
1.9.1




More information about the Openembedded-core mailing list