Re: debian/watch:
- To: debian-haskell@lists.debian.org
- Subject: Re: debian/watch:
- From: twb@cybersource.com.au (Trent W. Buck)
- Date: Mon, 04 Jan 2010 23:35:01 +1100
- Message-id: <[🔎] 307hrynj4a.fsf@cybersource.com.au>
- References: <4B30E381.8020805@poisson.phc.unipi.it> <1261508525.3007.32.camel@localhost> <4B314E8A.4070300@poisson.phc.unipi.it> <1261523102.3007.36.camel@localhost> <4B315D86.6050604@poisson.phc.unipi.it> <1261576258.3012.11.camel@localhost> <1261832399.26109.331.camel@zezinho> <1261876022.3242.32.camel@localhost> <1261916926.26109.347.camel@zezinho>
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...
Reply to: