Comment 5 for bug 181600

Revision history for this message
Daniel Hahler (blueyed) wrote :

It has been changed in Debian, because a search for "/var/cache" would fail, without the removed slash.

I will change it as follows:
1. Do not remove the slash from the pattern
2. If there's a slash at the beginning, match both with pattern and pattern-with-slash removed, but anchored at the beginning

For "apt-file search /sbin" the regexp should look like this then:
D: regexp: ^(sbin|.*\/sbin[^\s]*)\s+(\S+)\s*$

You can see the generated regexp/pattern yourself by using the "-v" option with apt-file.

The 2.0.5 change (trailing slash) is something different, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=280690

I have it just fixed, but want to look at other bugs/wishes, too, before uploading it - hopefully tomorrow.