packages: pldnotify.awk - wget timeout/retries everywhere not to linger aro...
glen
glen at pld-linux.org
Tue Jan 18 19:14:42 CET 2011
Author: glen Date: Tue Jan 18 18:14:42 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- wget timeout/retries everywhere not to linger around forever
---- Files affected:
packages:
pldnotify.awk (1.98 -> 1.99)
---- Diffs:
================================================================
Index: packages/pldnotify.awk
diff -u packages/pldnotify.awk:1.98 packages/pldnotify.awk:1.99
--- packages/pldnotify.awk:1.98 Mon Oct 25 07:55:37 2010
+++ packages/pldnotify.awk Tue Jan 18 19:14:37 2011
@@ -273,7 +273,8 @@
}
d("Retrieving: " url)
- cmd = "wget --user-agent \"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100129 PLD/3.0 (Th) Iceweasel/3.6\" -nv -O - \"" url "\" -t 2 -T 45 --passive-ftp --no-check-certificate > " tmpfile " 2> " tmpfileerr
+ user_agent = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100129 PLD/3.0 (Th) Iceweasel/3.6"
+ cmd = "wget -t 2 -T 45 --user-agent \"" user_agent "\" -nv -O - \"" url "\" --passive-ftp --no-check-certificate > " tmpfile " 2> " tmpfileerr
d("Execute: " cmd)
errno = system(cmd)
d("Execute done")
@@ -553,7 +554,7 @@
function rss_upgrade(name, ver, url, regex, cmd, nver) {
regex = "s/.*<title>" regex "<\/title>.*/\\1/p"
- cmd = "wget -q -O - " url " | sed -nre '" regex "' | head -n1"
+ cmd = "wget -t 2 -T 45 -q -O - " url " | sed -nre '" regex "' | head -n1"
d("rss_upgrade_cmd: " cmd)
cmd | getline nver
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pldnotify.awk?r1=1.98&r2=1.99&f=u
More information about the pld-cvs-commit
mailing list