[packages/rpm-build-tools] adapter: chop # from urls
glen
glen at pld-linux.org
Fri May 20 16:24:44 CEST 2016
commit 4fa0f36ac481af6d138d53f55aea77028bed0fbe
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/rpm-build-tools.git/commitdiff/4fa0f36ac481af6d138d53f55aea77028bed0fbe
More information about the pld-cvs-commit
mailing list