Bug#756747: nmu: zanshin_0.2.1-1
On 2014-08-01 13:43, Emilio Pozuelo Monfort wrote:
> [...]
>> Also, the ben file of the auto transition seems broken, as libkontactinterface4
>> will match libkontactinterface4a, so, maybe it should be replaced with
>> /\b(libkontactinterface4)\b/
>
> I see. Another option may be "libkontactinterface4", but IIRC exact matches
> perform worse than regexes in ben. Niels, what do you think?
>
> Cheers,
> Emilio
>
Optimially we would use exact package name, but yes, Ben had a horrible
performance with those. I tried to create the same in regex, but I
never got it right, so I gave up in the end. The particular suggestion
works for the particular example, but fails with dashes:
$ echo a-b | perl -ne 'print "MATCH\n" if m/\ba\b/'
MATCH
So, if you had libkontactinterface4 and libkontactinterface4-a, then the
regex would still be broken even with your suggestion.
~Niels
Reply to: