Author: arekm                        Date: Mon Dec  1 09:20:08 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fix close (I hope it's correct now)

---- Files affected:
SPECS:
   pldnotify.awk (1.69 -> 1.70) 

---- Diffs:

================================================================
Index: SPECS/pldnotify.awk
diff -u SPECS/pldnotify.awk:1.69 SPECS/pldnotify.awk:1.70
--- SPECS/pldnotify.awk:1.69    Mon Dec  1 10:08:40 2008
+++ SPECS/pldnotify.awk Mon Dec  1 10:20:02 2008
@@ -168,10 +168,10 @@
        wholeerr=""
 
        "mktemp /tmp/XXXXXX" | getline tmpfile
-       close(tmpfile)
+       close("mktemp /tmp/XXXXXX")
 
        "mktemp /tmp/errXXXXXX" | getline tmpfileerr
-       close(tmpfileerr)
+       close("mktemp /tmp/errXXXXXX")
 
        if (url ~ /^http:\/\/(download|dl).(sf|sourceforge).net\//) {
                gsub("^http://(download|dl).(sf|sourceforge).net/", "", url)
@@ -212,10 +212,7 @@
                if ( DEBUG ) print "Error Response: " wholeerr
        }
 
-       close(tmpfile)
        system("rm -f " tmpfile)
-
-       close(tmpfileerr)
        system("rm -f " tmpfileerr)
 
        urldir=url;
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/pldnotify.awk?r1=1.69&r2=1.70&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to