uscan download URL mangling

2008-04-07 Thread Michal Čihař
Hi I'm trying to construct watch file for python-mpd. It can be downloaded here: http://pypi.python.org/simple/python-mpd/, but the download URL contains #md5=... part, which I would like to be removed when uscan downloads the tarball. Is there some way to do this? I currently have following,

Re: uscan download URL mangling

2008-04-07 Thread Adam D. Barratt
Michal Čihař wrote, Monday, April 07, 2008 11:16 AM I currently have following, but it does not seem to work and the #md5= is not removed. opts=downloadurlmangle=s/#.*// \ http://pypi.python.org/simple/python-mpd/ \

Re: uscan download URL mangling

2008-04-07 Thread Michal Čihař
Hi On Mon, 7 Apr 2008 12:15:23 +0100 Adam D. Barratt [EMAIL PROTECTED] wrote: downloadurlmangle affects the URL that uscan downloads, not the filename that the result is saved under; for the latter you want filenamemangle: opts=filenamemangle=s/^.*(python-mpd-.*?\.tar\.gz)#.*$/$1/ \

Re: uscan download URL mangling

2008-04-07 Thread Sandro Tosi
Hi, opts=filenamemangle=s/^.*(python-mpd-.*?\.tar\.gz)#.*$/$1/ \ http://pypi.python.org/simple/python-mpd/ \ http://pypi.python.org/packages/source/p/python-mpd/python-mpd-(.*?)\.tar\.gz#.* Thanks, I just thought that downloadurlmangle will affect both download url and

Re: uscan download URL mangling

2008-04-07 Thread Michal Čihař
Dne Mon, 7 Apr 2008 18:32:36 +0200 Sandro Tosi [EMAIL PROTECTED] napsal(a): There is a much simpler way: http://pypi.python.org/packages/source/p/python-mpd/python-mpd-(.*)\.tar\.gz I've committed that url in the repository. Thanks, I thought this won't work, so I even did no try it ;-).