[oe-commits] Chong Lu : adt_installer: not download repo page

git at git.openembedded.org git at git.openembedded.org
Tue Jul 8 10:21:47 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 72f24557bceace990e8e5d2d3b91586fc394cc3b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=72f24557bceace990e8e5d2d3b91586fc394cc3b

Author: Chong Lu <Chong.Lu at windriver.com>
Date:   Fri Jul  4 16:45:16 2014 +0800

adt_installer: not download repo page

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>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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. "



More information about the Openembedded-commits mailing list