]> git.pld-linux.org Git - packages/php-pear.git/blobdiff - update-channels.sh
updated
[packages/php-pear.git] / update-channels.sh
old mode 100644 (file)
new mode 100755 (executable)
index 325df37..90712a9
@@ -17,8 +17,9 @@ 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)
+       sed -i -e 's,\r$,,g; s,\r,\n,g' tmp.xml
        mv -f tmp.xml channel-$alias.xml
 done
 
This page took 0.116555 seconds and 4 git commands to generate.