Package: dpkg
Version: 1.20.5
Severity: normal

Dear Maintainer,

I noticed that dpkg -V doesn't seem to take into account the
path-exclude configuration setting.

This config, for example:
$ cat /etc/dpkg/dpkg.cfg.d/excludes
# Drop all man pages
path-exclude=/usr/share/man/*

# Drop all translations
path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo

# Drop all documentation ...
path-exclude=/usr/share/doc/*

# ... except copyright files ...
path-include=/usr/share/doc/*/copyright

# ... and Debian changelogs
path-include=/usr/share/doc/*/changelog.Debian.*

A fresh sid container has a clean dpkv -V. I then create the excludes
file above, and install some packages:
# apt install man slapd
....

dpkg -V is now unhappy:
root@sid:~# dpkg -V|head
??5??????   /usr/share/doc/slapd/NEWS.Debian.gz
??5??????   /usr/share/doc/slapd/README.DB_CONFIG.gz
??5??????   /usr/share/doc/slapd/README.Debian.gz
??5??????   /usr/share/doc/slapd/TODO.Debian
??5??????   /usr/share/doc/slapd/changelog.gz
??5??????   /usr/share/doc/slapd/examples/DB_CONFIG
??5??????   /usr/share/doc/slapd/examples/slapd.backup
??5??????   /usr/share/doc/slapd/examples/slapd.conf.gz
??5??????   /usr/share/man/man5/slapd-bdb.5.gz
??5??????   /usr/share/man/man5/slapd-config.5.gz

Since dpkg knows these files are being excluded, it should not warn
about them in the -V operation.

Reply via email to