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

Bug#485884: lintian: debian-watch-file-should-mangle-version reported with correctly mangled version



tag 485884 patch
thanks

On Wednesday 11 June 2008, Martín Ferrari wrote:
> Package: lintian
> Version: 1.24.0
> Severity: normal
>
...
>
> But it still complains. I have read the code for the test, but I cannot
> see why it fails to detect the mangling.

s/^opts=(\S+)\s*// matches opts="dversionmangle=s/\+dfsg//", but it is not 
intended to.

By changing the order of the regexes s/^opts=\"([^\"]+)\"// is the first one 
to, correctly, match the string.

The change is safe as the first regex will fail when it should, and the second 
one will match, when it should.

Cheers,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

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


Reply to: