SPECS: pldnotify.awk - add wget commandline to debug
glen
glen at pld-linux.org
Mon Dec 1 13:46:21 CET 2008
Author: glen Date: Mon Dec 1 12:46:21 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add wget commandline to debug
---- Files affected:
SPECS:
pldnotify.awk (1.71 -> 1.72)
---- Diffs:
================================================================
Index: SPECS/pldnotify.awk
diff -u SPECS/pldnotify.awk:1.71 SPECS/pldnotify.awk:1.72
--- SPECS/pldnotify.awk:1.71 Mon Dec 1 13:35:51 2008
+++ SPECS/pldnotify.awk Mon Dec 1 13:46:16 2008
@@ -170,7 +170,7 @@
}
# get all <A HREF=..> tags from specified URL
-function get_links(url,filename, errno,link,oneline,retval,odp,wholeodp,lowerodp,tmpfile) {
+function get_links(url,filename, errno,link,oneline,retval,odp,wholeodp,lowerodp,tmpfile,cmd) {
wholeerr=""
@@ -203,7 +203,9 @@
if (DEBUG) print "Retrieving: " url
- errno=system("wget -nv -O - \"" url "\" -t 2 -T 45 --passive-ftp > " tmpfile " 2> " tmpfileerr )
+ cmd = "wget -nv -O - \"" url "\" -t 2 -T 45 --passive-ftp > " tmpfile " 2> " tmpfileerr
+ if (DEBUG) print "Execute: " cmd
+ errno = system(cmd)
if (errno==0) {
while (getline oneline < tmpfile)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/pldnotify.awk?r1=1.71&r2=1.72&f=u
More information about the pld-cvs-commit
mailing list