commit 3f8ea9bd438c1c9432fd845901ed9ee5c679640a
Author: Jakub Bogusz <[email protected]>
Date:   Fri Oct 30 16:35:39 2009 +0000

    - it seems that now downloads.sourceforge.net gives proper, working 
redirection, while dl.sourceforge.net direcly rarely works
    
    Changed files:
        adapter.awk -> 1.427

 adapter.awk | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 0bcf32e..b52d411 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -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);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885

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

Reply via email to