]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
Add launchpad.net and edge.launchpad.net support. Skip .asc, .sig files.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 24 Jul 2009 16:50:11 +0000 (16:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pldnotify.awk -> 1.76

pldnotify.awk

index a727fd68cb03aa3cfb62cee6df14c6562fd211e5..d237eb300dbf40045619b3436ff9c3ecab319f85 100644 (file)
@@ -201,6 +201,20 @@ function get_links(url,filename,   errno,link,oneline,retval,odp,wholeodp,lowero
                 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 @@ function process_source(number,lurl,name,version) {
                                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"
This page took 0.029146 seconds and 4 git commands to generate.