- haskell hackage support
authorJan Palus <jan.palus@gmail.com>
Sun, 21 Jul 2013 13:31:24 +0000 (15:31 +0200)
committerJan Palus <jan.palus@gmail.com>
Sun, 21 Jul 2013 13:31:24 +0000 (15:31 +0200)
pldnotify.awk

index d6192e77cb8de0b23bf7d8ef691bf4e1c70b7457..762a7430d9cc08fd8e5789599b01da456110634f 100755 (executable)
@@ -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
This page took 0.054737 seconds and 4 git commands to generate.