[packages/php-pear] do not try forever (1 try 10s timeout)

glen glen at pld-linux.org
Wed Aug 29 00:01:16 CEST 2012


commit 150f2fb520f87b97c3aa4f1146e7cf7299c80cb1
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Aug 29 00:56:20 2012 +0300

    do not try forever (1 try 10s timeout)

 update-channels.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/update-channels.sh b/update-channels.sh
old mode 100644
new mode 100755
index 325df37..0c33965
--- a/update-channels.sh
+++ b/update-channels.sh
@@ -17,7 +17,7 @@ channels="
 "
 for channel in $channels; do
 	url=http://$channel/channel.xml
-	wget -q -O tmp.xml $url || continue
+	wget -q --timeout=10 --tries=1 -O tmp.xml $url || continue
 	alias=$(sed -nre 's,.*<suggestedalias>(.+)</suggestedalias>.*$,\1,p' tmp.xml)
 	mv -f tmp.xml channel-$alias.xml
 done
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pear.git/commitdiff/c809b46bc22e8a694323b5f33f772e0adab183ff



More information about the pld-cvs-commit mailing list