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

Re: debian/watch:



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: