[packages/pldnotify] Handle urls like in python-fasterners.spec. rt#brak
arekm
arekm at pld-linux.org
Wed Nov 1 14:05:12 CET 2017
commit 9f4d4b97439363e245239adadd754e70baa59b41
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Nov 1 14:05:05 2017 +0100
Handle urls like in python-fasterners.spec. rt#brak
pldnotify.awk | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/pldnotify.awk b/pldnotify.awk
index d650768..42f2cc6 100755
--- a/pldnotify.awk
+++ b/pldnotify.awk
@@ -323,7 +323,12 @@ function get_links(url,filename, errno,link,oneline,retval,odp,wholeodp,lowero
d("rar tarball url, mangled url to: " url)
} else if (url ~/^(http|https):\/\/pypi.python.org\/packages\/source\/.*/) {
gsub("/packages/source/[a-zA-Z0-9]/", "/pypi/", url)
- d("pypi.python.org url, mangled url to: " url)
+ d("pypi.python.org 1 url, mangled url to: " url)
+ } else if (url ~/^(http|https):\/\/pypi.python.org\/packages\/.*/) {
+ project = filename
+ gsub("-[0-9]+.*", "", project)
+ gsub("/packages/.*/", "/pypi/" project, url)
+ d("pypi.python.org 2 url, mangled url to: " url)
}
d("Retrieving: " url)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pldnotify.git/commitdiff/9f4d4b97439363e245239adadd754e70baa59b41
More information about the pld-cvs-commit
mailing list