]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- it seems that now downloads.sourceforge.net gives proper, working redirection,...
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 30 Oct 2009 16:35:39 +0000 (16:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.427

adapter.awk

index 0bcf32e309fe797aa616b7f66137c59eaf8c972e..b52d41140b910212040b572c80a249f4291264ab 100644 (file)
@@ -1580,18 +1580,18 @@ function unify_url(url)
 {
 
        # sourceforge urls
-       # Docs about sourceforge mirror system: http://sourceforge.net/docs/B05/
-       sub("^http://prdownloads\.sourceforge\.net/", "http://dl.sourceforge.net/", url)
-       sub("^http://download\.sf\.net/", "http://dl.sourceforge.net/", url)
-       sub("^http://download\.sourceforge\.net/", "http://dl.sourceforge.net/", url)
-       sub("^http://downloads\.sourceforge\.net/", "http://dl.sourceforge.net/", url)
-       sub("^http://.*\.dl\.sourceforge\.net/", "http://dl.sourceforge.net/", url)
-       sub("^http://dl\.sourceforge\.net/sourceforge/", "http://dl.sourceforge.net/", url)
-       sub("^http://dl\.sf\.net/", "http://dl.sourceforge.net/", url)
+       # Docs about sourceforge mirror system: http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors
+       sub("^http://prdownloads\.sourceforge\.net/", "http://downloads.sourceforge.net/", url)
+       sub("^http://download\.sf\.net/", "http://downloads.sourceforge.net/", url)
+       sub("^http://download\.sourceforge\.net/", "http://downloads.sourceforge.net/", url)
+       sub("^http://dl\.sourceforge\.net/", "http://downloads.sourceforge.net/", url)
+       sub("^http://.*\.dl\.sourceforge\.net/", "http://downloads.sourceforge.net/", url)
+       sub("^http://dl\.sf\.net/", "http://downloads.sourceforge.net/", url)
+       sub("^http://downloads\.sourceforge\.net/sourceforge/", "http://downloads.sourceforge.net/", url)
        # new style urls, strip "files/" between and prepend dl.
        if (match(url, "^http://sourceforge.net/projects/[^/]+/files/")) {
                url = substr(url, 1, RLENGTH - length("files/")) substr(url, RSTART + RLENGTH);
-               sub("^http://sourceforge.net/projects/", "http://dl.sourceforge.net/project/", url);
+               sub("^http://sourceforge.net/projects/", "http://downloads.sourceforge.net/project/", url);
        }
        if (url ~ /sourceforge.net/) {
                sub("[?&]big_mirror=.*$", "", url);
This page took 0.039973 seconds and 4 git commands to generate.