Public bug reported:

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.

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: dpkg (Debian)
     Importance: Unknown
         Status: Unknown

** Bug watch added: Debian Bug tracker #975338
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975338

** Also affects: dpkg (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975338
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1905302

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1905302/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to