[packages/rpm-build-tools] - handle github archive url (bitcoin.spec as example)

arekm arekm at pld-linux.org
Mon Apr 29 22:43:11 CEST 2013


commit b8e0ec33ff2f6d214fb21acbef36279f4f376117
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Apr 29 22:43:08 2013 +0200

    - handle github archive url (bitcoin.spec as example)

 pldnotify.awk | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/pldnotify.awk b/pldnotify.awk
index 5ad01fb..c16e759 100755
--- a/pldnotify.awk
+++ b/pldnotify.awk
@@ -278,6 +278,11 @@ function get_links(url,filename,   errno,link,oneline,retval,odp,wholeodp,lowero
 		d("github tarball url, mungled url to: " url)
 	}
 
+	if (url ~/^(http|https):\/\/github.com\/.*\/(.*)\/archive\//) {
+		gsub("\/archive\/.*", "/tags", url)
+		d("github archive url, mungled url to: " url)
+	}
+
 	if (url ~/^(http|https):\/\/cgit\..*\/(.*)\/snapshot\//) {
 		gsub("\/snapshot\/.*", "/", url)
 		d("cgit snapshot tarball url, mungled url to: " url)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/b8e0ec33ff2f6d214fb21acbef36279f4f376117



More information about the pld-cvs-commit mailing list