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@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|