]> git.pld-linux.org Git - packages/php-pear.git/commitdiff
do not try forever (1 try 10s timeout)
authorElan Ruusamäe <glen@delfi.ee>
Tue, 28 Aug 2012 21:56:20 +0000 (00:56 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 28 Aug 2012 21:56:20 +0000 (00:56 +0300)
update-channels.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 325df37..0c33965
@@ -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
This page took 0.074655 seconds and 4 git commands to generate.