Friday 20 November 2020

dpkg -V does not consider path-exclude config, fails on ubuntu-minimal

Hi,

I noticed that `dpkg -V` does not take into consideration potential
exclusions defined in its configuration.

An ubuntu-minimal image, for example, has this:
```
$ 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.*
```

Which results in a lot of noise when `dpkg -V` is run:
```
$ dpkg -V | head
??5?????? /usr/share/doc/python3-pkg-resources/pkg_resources.txt.gz
??5?????? /usr/share/doc/fonts-ubuntu-console/README
??5?????? /usr/share/doc/cryptsetup-bin/NEWS.Debian.gz
??5?????? /usr/share/man/man8/cryptsetup-reencrypt.8.gz
??5?????? /usr/share/man/man8/cryptsetup.8.gz
??5?????? /usr/share/man/man8/integritysetup.8.gz
??5?????? /usr/share/man/man8/veritysetup.8.gz
??5?????? /usr/share/doc/python3-distutils/README.Debian
??5?????? /usr/share/doc/libip4tc2/NEWS.Debian.gz
??5?????? /usr/share/doc/libksba8/AUTHORS
...
```

Shouldn't `dpkg -V` take the path-{exclude,include} into
consideration? Is this just a bug (which I can file), or was it a
conscious decision?

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel