Package: dpkg
Version: 1.19.7

Dear Maintainers,

The "path-exclude" and "path-include" configurations in "/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include" are not taken into account on package removals.

To reproduce you can for example:

- Install the package "xfwm4".

- Add "path-exclude /usr/share/themes/*" to "/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include".

- Remove or reinstall the package "xfwm4".

- See that "xfwm4" themes in "/usr/share/themes/*" are gone.

This is obviously problematic when one wants to modify some files from a given package while preserving their names/paths. Then any update, reinstall or removal of the given package removes also the customized files even if those files are excluded using the "path-exclude" configurations in "/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include".

Currently I need to use custom workaround scripts to periodically restore the such modifications and try to minimize such modifications, but still it would be nice if the current "path-exclude" and "path-include" mechanisms could be improved in this regard.

Regards,
Bakhelit

Reply via email to