[packages/rpm-build-tools] - haskell hackage support

atler atler at pld-linux.org
Sun Jul 21 15:35:53 CEST 2013


commit bd37d7ae8b9bc7be74e75e822704c138b3e4376a
Author: Jan Palus <jan.palus at gmail.com>
Date:   Sun Jul 21 15:31:24 2013 +0200

    - haskell hackage support

 pldnotify.awk | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/pldnotify.awk b/pldnotify.awk
index d6192e7..762a743 100755
--- a/pldnotify.awk
+++ b/pldnotify.awk
@@ -314,6 +314,11 @@ function get_links(url,filename,   errno,link,oneline,retval,odp,wholeodp,lowero
 		d("owncloud tarball url, mungled url to: " url)
 	}
 
+	if (url ~/^(http|https):\/\/hackage\.haskell\.org\/packages\/archive\//) {
+		gsub("\/packages\/archive","/package",url)
+		d("hackage haskell tarball url, mungled url to: " url)
+	}
+
 	d("Retrieving: " url)
 	user_agent = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100129 PLD/3.0 (Th) Iceweasel/3.6"
 	cmd = "wget -t 2 -T 45 --user-agent \"" user_agent "\" -nv -O - \"" url "\" --passive-ftp --no-check-certificate > " tmpfile " 2> " tmpfileerr
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list