]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
taskwarrior hack
authorArtur Frysiak <artur@frysiak.net>
Mon, 22 Jul 2013 14:24:18 +0000 (16:24 +0200)
committerArtur Frysiak <artur@frysiak.net>
Mon, 22 Jul 2013 14:24:18 +0000 (16:24 +0200)
pldnotify.awk

index 762a7430d9cc08fd8e5789599b01da456110634f..30f9786598f3a3d42df2f908e0c2fbb18f138b16 100755 (executable)
@@ -319,6 +319,11 @@ function get_links(url,filename,   errno,link,oneline,retval,odp,wholeodp,lowero
                d("hackage haskell tarball url, mungled url to: " url)
        }
 
+       if (url ~/^http:\/\/www.taskwarrior.org\/download\//) {
+               url = "http://taskwarrior.org/projects/taskwarrior/wiki/Download"
+               d("taskwarrior 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.028355 seconds and 4 git commands to generate.