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

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
Reply to: