Author: arekm Date: Mon Feb 22 17:11:14 2010 GMT Module: packages Tag: HEAD ---- Log message: More debug.
---- Files affected: packages: pldnotify.awk (1.78 -> 1.79) ---- Diffs: ================================================================ Index: packages/pldnotify.awk diff -u packages/pldnotify.awk:1.78 packages/pldnotify.awk:1.79 --- packages/pldnotify.awk:1.78 Wed Feb 10 21:56:52 2010 +++ packages/pldnotify.awk Mon Feb 22 18:11:08 2010 @@ -1,7 +1,7 @@ #!/bin/awk -f # $Revision$, $Date$ # -# Copyright (C) 2000-2009 PLD-Team <[email protected]> +# Copyright (C) 2000-2010 PLD-Team <[email protected]> # Authors: # Sebastian Zagrodzki <[email protected]> # Jacek Konieczny <[email protected]> @@ -221,12 +221,17 @@ 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 if (DEBUG) print "Execute: " cmd errno = system(cmd) + if (DEBUG) print "Execute done" if (errno==0) { + wholeodp = "" + if ( DEBUG ) print "Reading succeess response..." while (getline oneline < tmpfile) wholeodp=(wholeodp " " oneline) + printf "" if ( DEBUG ) print "Response: " wholeodp } else { + if ( DEBUG ) print "Reading failure response..." wholeerr = "" while (getline oneline < tmpfileerr) wholeerr=(wholeerr " " oneline) @@ -241,6 +246,7 @@ if ( errno==0) { while (match(wholeodp, /<([aA]|[fF][rR][aA][mM][eE])[ \t][^>]*>/) > 0) { + if (DEBUG) print "Processing links..." odp=substr(wholeodp,RSTART,RLENGTH); wholeodp=substr(wholeodp,RSTART+RLENGTH); ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pldnotify.awk?r1=1.78&r2=1.79&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
