[packages/adapter: 624/631] adapter: chop # from urls
glen
glen at pld-linux.org
Mon Sep 12 20:26:44 CEST 2016
commit 46db5e07ee0c1336e3774b0ece4eaf08f40b3584
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri May 20 17:24:32 2016 +0300
adapter: chop # from urls
adapter.awk | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 70e64a9..a773b8c 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1773,6 +1773,9 @@ function unify_url(url)
# sourceforge urls
# Docs about sourceforge mirror system: http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors
+ # 0. strip "#", rpm5 chops it off
+ sub("#.*", "", url)
+
# 1. unify domains
sub("^http://prdownloads\.sourceforge\.net/", "http://downloads.sourceforge.net/", url)
sub("^http://download\.sf\.net/", "http://downloads.sourceforge.net/", url)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list