Re: uscan download URL mangling
- Date: Mon, 7 Apr 2008 12:15:23 +0100
- From: "Adam D. Barratt" <adam@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: uscan download URL mangling
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/ \
http://pypi.python.org/packages/source/p/python-mpd/python-mpd-(.*)\.tar\.gz#.*
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/" \
http://pypi.python.org/simple/python-mpd/ \
http://pypi.python.org/packages/source/p/python-mpd/python-mpd-(.*?)\.tar\.gz#.*
There may be a better solution, but the above does work.
Regards,
Adam
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx