Author: arekm                        Date: Fri Jul 24 16:50:17 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
Add launchpad.net and edge.launchpad.net support. Skip .asc, .sig files.

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

---- Diffs:

================================================================
Index: packages/pldnotify.awk
diff -u packages/pldnotify.awk:1.75 packages/pldnotify.awk:1.76
--- packages/pldnotify.awk:1.75 Sun Jun 28 18:51:14 2009
+++ packages/pldnotify.awk      Fri Jul 24 18:50:11 2009
@@ -201,6 +201,20 @@
                 if (DEBUG) print "mysql 5.1 url, mungled url to: " url
        }
 
+       if (url ~/^(http|https):\/\/launchpad\.net\/(.*)\//) {
+               gsub("^(http|https):\/\/launchpad\.net\/", "", url)
+               gsub("\/.*/", "", url)
+               url = "https://code.launchpad.net/"; url "/+download"
+               if (DEBUG) print "main launchpad url, mungled url to: " url
+       }
+
+       if (url ~/^(http|https):\/\/edge\.launchpad\.net\/(.*)\//) {
+               gsub("^(http|https):\/\/edge\.launchpad\.net\/", "", url)
+               gsub("\/.*/", "", url)
+               url = "https://edge.launchpad.net/"; url "/+download"
+               if (DEBUG) print "edge launchpad url, mungled url to: " url
+       }
+
 
        if (DEBUG) print "Retrieving: " url
        cmd = "wget -nv -O - \"" url "\" -t 2 -T 45 --passive-ftp 
--no-check-certificate > " tmpfile " 2> " tmpfileerr
@@ -400,7 +414,7 @@
                                newfilename=fixedsub(prever,"",newfilename)
                                newfilename=fixedsub(postver,"",newfilename)
                                if (DEBUG) print "Version: " newfilename
-                               if (newfilename ~ /\.(pkg|bin|binary|built)$/) 
continue
+                               if (newfilename ~ 
/\.(asc|sig|pkg|bin|binary|built)$/) continue
                                if (NUMERIC) {
                                        if ( compare_ver_dec(version, 
newfilename)==1 ) {
                                                if (DEBUG) print "Yes, there is 
new one"
================================================================

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

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

Reply via email to