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

Bug#253884: lintian: override matching should be allowed partially too



Frank Lichtenheld <djpig@debian.org> writes:

> I stumbled upon this missing feature last week and would be interested
> in finally implementing it. But I'm unsure about the best syntax for
> that to not break backwards compatibility.
>
> My current idea would be to only support partial matches if explicetly
> requested and only support one wildcard '*' at the beginning and/or the
> end of the extra info.
>
> So
> tag-name extra-info	===> /^\Qtag-name\E\s+\Qextra-info\E$/
> tag-name extra-info*	===> /^\Qtag-name\E\s+\Qextra-info\E.*$/
> tag-name *extra-info	===> /^\Qtag-name\E\s+.*?\Qextra-info\E$/
> tag-name *extra-info*	===> /^\Qtag-name\E\s+.*?\Qextra-info\E.*$/

Yeah, I'm not sure we need anything other than * as a wildcard.  I would
tend to start doing matching on the extra info if it's provided.  I think
right now we ignore the extra-info section of an override entirely, don't
we?  I looked at that once and then confused myself.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: