Hi, Am Montag, den 04.01.2010, 23:35 +1100 schrieb Trent W. Buck: > Marco Túlio Gontijo e Silva <marcot@riseup.net> writes: > > This is even better than your original purpose. It's very nice that the > > package name occurs only once and it seems to work for me here. I'll > > update on all packages as soon as possible. > > This is the version that ended up in darcs' repo (thanks!) > > > version=3 > > opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,filenamemangle=s|/$|.tar.gz|" > > \ > > http://hackage.haskell.org/packages/archive/darcs \ > > ([\d\.]*\d)/ > > One thing I don't like about this is that it downloads to "2.3.0.tar.gz" > instead of "darcs-2.3.0.tar.gz". I can imagine this causing problems > when uscanning a directory full of Haskell packages, of which some have > overlapping upstream versions. > > I couldn't work out how to "fix" this without hard-coding the project > name a second time: > > filenamemangle=s|(.*)/$|darcs-$1.tar.gz| > > You'd think there'd be a way to say $Source or something... doesn’t uscan rename the file anyways to the proper debian-sourcepackagename_version.orig.tar.gz name? At least it does it with --download, I think. $Source would not help as you’d expect the upstream file name there, not haskell-blubb. 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