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

Re: Hackage vs. uscan (debian/watch) in darcs.d.o repos


Am Montag, den 23.11.2009, 17:51 +1100 schrieb Trent W. Buck:
> Two styles of hackage watchfiles can be found on darcs.debian.org:
>   http://hackage.haskell.org/packages/archive/hashed-storage/([\d.]+)/hashed-storage-([\d.]+).tar.gz
> and
>   opts="uversionmangle=s/\.(\d)(?=\.|$)/0$1/g;s/\.(\d\d)(?=\.|$)/$1/g" \
>   http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP /packages/archive/HTTP/.*/HTTP-([\d\.]*)\.tar\.gz
> Both styles can only "see" the latest tarball, and thus "uscan
> --download-current-version" cannot be used to get a tarball after a
> "darcs get".  It's useful to do so in order to produce .changes and .dsc
> files for feeding into debdiff (to compare with one's new version).
> Could this be addressed by a simple patch to hackage?
> PS: I have a feeling this has already been discussed, but I can't find
> the thread in the list's archive.

thanks for bringing this up. I think we only discussed that there is a
problem, but not how to solve it.

A solution on the hackage side would be to create directories 
that contains (symlinks to) the tarballs from all versions. It should
not be hard to create a patch against hackage to do that – do you want
to give it a shot?

Alternatively, we might use this approach, which seems to work, but is
tied quite a bit to the hackage directory layout:

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


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: