packages: pldnotify.awk - use new url when checking sourceforge projects

arekm arekm at pld-linux.org
Sat Jul 25 16:39:03 CEST 2009


Author: arekm                        Date: Sat Jul 25 14:39:03 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use new url when checking sourceforge projects

---- Files affected:
packages:
   pldnotify.awk (1.76 -> 1.77) 

---- Diffs:

================================================================
Index: packages/pldnotify.awk
diff -u packages/pldnotify.awk:1.76 packages/pldnotify.awk:1.77
--- packages/pldnotify.awk:1.76	Fri Jul 24 18:50:11 2009
+++ packages/pldnotify.awk	Sat Jul 25 16:38:58 2009
@@ -179,7 +179,8 @@
 
 	if (url ~ /^http:\/\/(download|dl).(sf|sourceforge).net\//) {
 		gsub("^http://(download|dl).(sf|sourceforge).net/", "", url)
-		url = "http://prdownloads.sourceforge.net/" substr(url, 1, 1) "/" substr(url, 1, 2) "/" url
+		gsub("/.*", "", url)
+		url = "http://sourceforge.net/projects/" url "/files/"
 		if (DEBUG) print "sf url, mungled url to: " url
 	}
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pldnotify.awk?r1=1.76&r2=1.77&f=u



More information about the pld-cvs-commit mailing list