package: dpkg
version: 1.17.27

In the manpage for dpkg, there is an example for path-exclude/path-include:

==
--path-exclude=/usr/share/doc/*
--path-include=/usr/share/doc/*/copyright
==

These 2 patterns will end up skipping packages that have
/usr/share/doc/$foo as a symlink to another package.  Which means
things like perl-base, libstdc++6, libgcc1, etc, which have their docs
symlinked to another package from the same source, will be broken, as
the copyright for the package is not available at
/usr/share/doc/$pkg/copyright, as *required* by policy.

Perhaps --path-exclude=/usr/share/doc/*/*, with the same include,
might be better.

Reply via email to