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

Re: Need help for watch file



Le Fri, Sep 14, 2012 at 04:21:33PM +0200, Andreas Tille a écrit :
> 
> version=3
> opts=\
> dversionmangle=s/[~\+]dfsg//,\
> downloadurlmangle=s/VolView-([\d\.]+)-Linux-x86_64.sh/VolViewSrc.tar.gz/,\
> filenamemangle=s/VolView(-[\d\.]+)-Linux-x86_64.sh/VolViewSrc$1.tar.gz/ \
> http://www.kitware.com/products/vvdownload.html \
> http://www.kitware.com/VolView/files/VolView-([\d\.]+)-Linux-x86_64.sh
 
> -- Downloading updated package http://www.kitware.com/VolView/files/VolViewSrc-3.4.tar.gz
> uscan warning: ../http://www.kitware.com/VolView/files/VolViewSrc-3.4.tar.gz does not appear to be a compressed file;
> the file command says: ERROR: cannot open `../http://www.kitware.com/VolView/files/VolViewSrc-3.4.tar.gz' (No such file or directory)
> 

Hi Andreas,

the problem here is that uscan sees the file name as:

  http://www.kitware.com/VolView/files/VolView-3.4-Linux-x86_64.sh

Your filenamemangle regular expression turns it into:

  http://www.kitware.com/VolView/files/VolViewSrc-3.4.tar.gz

A second expression is needed to remove the URL part. With the following,

  filenamemangle=s/VolView(-[\d\.]+)-Linux-x86_64.sh/VolViewSrc$1.tar.gz/;s|http://www.kitware.com/VolView/files/||

Uscan now sees the file name as

  VolViewSrc-3.4.tar.gz

Have a nice week-end,

-- 
Charles Plessy
Debian Med packaging team,
http://www.debian.org/devel/debian-med
Tsurumi, Kanagawa, Japan


Reply to: