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

Re: Need help for watch file



On Tue, 28 Aug 2012 19:27:28 Andreas Tille wrote:
> Hmmm, I tried this
> 
> opts=dversionmangle=s/([\d.]+)\.(\d+)/$1-r$2/,downloadurlmangle=s/MRIConver
> t_.*/mriconvert_sources.zip/ \
> http://lcni.uoregon.edu/~jolinda/MRIConvert/MRIConvert_x86-([\d\.]+-r\d+)\
> .tar\.gz
> 
> which ends up with version 2.0-r235.  I know that dversionmangle is the
> wrong approach and it rather should be
>    uversionmangle=s/([\d.]+)-r(\d+)/$1.$2/
> but if I try this I do not get a match on the given download page.
> 

The following would work with "uscan --rename --repack":

######################
opts=\
uversionmangle=s/([\d.]+)-r(\d+)/$1.$2/,\
downloadurlmangle=s/MRIConvert_.*/mriconvert_sources.zip/,\
filenamemangle=s/.*/orig.zip/,\
 http://lcni.uoregon.edu/~jolinda/MRIConvert/MRIConvert_x86-([\d\.]+-r\d+)\.tar\.gz
######################

Hack-ish and perhaps ugly but works... 

Indeed the best would be to try convincing upstream to rename source archive...

Cheers,
Dmitry.

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: