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

Bug#505857: lintian: false positive debian-watch-file-should-mangle-version



Version: 2.5.65

Re: Roger Shimizu 2017-10-16 <CAEQ9gE=ug+_-HAPthKr9Ri+GjVvBnL11r1O64+jqPgwqxSgOeg@mail.gmail.com>
> On Mon, May 30, 2016 at 1:41 AM, Roger Shimizu <rogershimizu@gmail.com> wrote:
> > I met this false positive message, too. But in different case.
> > I got the message when debian/watch is like:
> >
> > ====
> > opts="repack,compression=xz, \
> >    dversionmangle=s/\+ds\d*$//,repacksuffix=+ds, \
> >    ....
> > ====
> >
> > And lintian is happy when dversionmangle line moves to the 1st line:
> >
> > ====
> > opts="repack,compression=xz,dversionmangle=s/\+ds\d*$//,repacksuffix=+ds, \
> >    ....
> > ====
> 
> This issue got disappeared recently.
> Maybe lintian already fixed this, after stretch released?

There are still cases where it is buggy:

# please also check http://pypi.debian.net/Flask-Mail/watch
version=3
opts="uversionmangle=s/(rc|a|b|c)/~$1/, dversionmangle=s/\+dfsg.*//" \
http://pypi.debian.net/Flask-Mail/Flask-Mail-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

W: flask-mail source: debian-watch-file-should-mangle-version line 4

The warning goes away when I remove the space after the comma.

The version with the space is the syntax documented in uscan(1):

  Multiple options option1, option2, option3, ... can be set as
  opts="option1, option2, option3,  ...  " .

Christoph


Reply to: