dpkg -V should consider path-exclude/path-include

Bug #1905302 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg (Debian)
New
Unknown
dpkg (Ubuntu)
New
Undecided
Unassigned

Bug Description

Copy of the bug filed in Debian:

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.

Changed in dpkg (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.