[packages/adapter: 485/631] - debian ftp url unify
glen
glen at pld-linux.org
Mon Sep 12 20:15:06 CEST 2016
commit a4799779630a739096da8f47eb86dc5742d76ee8
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Jun 4 06:16:59 2010 +0000
- debian ftp url unify
Changed files:
adapter.awk -> 1.455
adapter.awk | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 7236051..347f94b 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1648,8 +1648,13 @@ function unify_url(url)
sub("^http://apache.zone-h.org/", "http://www.apache.org/dist/", url)
# gnu.org
- sub("^ftp://ftp.gnu.org/", "http://ftp.gnu.org/", url)
- sub("^http://ftp.gnu.org/pub/gnu/", "http://ftp.gnu.org/gnu/", url)
+ sub("^ftp://ftp\.gnu\.org/", "http://ftp.gnu.org/", url)
+ sub("^http://ftp\.gnu\.org/pub/gnu/", "http://ftp.gnu.org/gnu/", url)
+
+ # debian.org
+ sub("^ftp://ftp\.[^.]+\.debian\.org/", "ftp://ftp.debian.org/", url)
+ sub("^http://ftp\.[^.]+\.debian\.org/", "ftp://ftp.debian.org/", url)
+ sub("^ftp://ftp\.debian\.org/pub/debian/", "ftp://ftp.debian.org/debian/", url)
return url
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list