[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: haskell-sha



Hi,

Am Samstag, den 26.12.2009, 10:59 -0200 schrieb Marco Túlio Gontijo e
Silva:
> Just did it.  It seems not to be working with the newest version,
> because the link to the current version in hackage is disabled.  I made
> some changes to make it catch the direct link to the .tar.gz, and I got
> to:
> 
> version=3
> opts=downloadurlmangle=s|package/([\w\d_-]+)-([\d\.]+)|
> packages/archive/$1/$2/$1-$2.tar.gz| \
>     http://hackage.haskell.org/package/arrows \
>     [\w\d\./_-]+arrows-([\d\.]*\d)[\w\.]*
> 
> This seems to be working, although it's not pretty. 

It really isn’t. Maybe we should just set up an equivalent to
http://githubredir.debian.net/ which periodically downloads the indices
form Hackage and creates a nice parsable overview page.

Another idea: If we use 
http://hackage.haskell.org/packages/archive/arrows/
as the page to scrape all versions from, we don’t need to hammer their
CGI scripts (which is nice), no special treatment of the latest version
and probably more robust and the package name occurs only once:

version=3
opts=downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz| \
    http://hackage.haskell.org/packages/archive/arrows \
    ([\d\.]*\d)/


I guess with this solution, unless you find a bug with it, we should use
this and not spend effort in re-creating an hackage interface.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: