#771956 dpkg: overwrites "alternatives" symlinks without warning

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
"Roland R."
Date:
2015-03-29 00:03:05 UTC
Severity:
normal
#771956#5
Date:
2014-12-03 19:32:47 UTC
From:
To:
Dear Maintainers of dpkg,

one of the great freatures of dpkg is that every file and symlink created is listed in /var/lib/dpkg/info/<packagename>.list .
This allows e.g. to check if the system is "clean" by comparing all files to their checksums (using debsums) and by checking that there are no other files and symlinks than those listed in /var/lib/dpkg/info/*.list .
Unfortunately, although update-alternatives is a part of the dpkg package, it seems to have been forgotten to list the created symlinks in /var/lib/dpkg/info/alternatives.list .
It would be great if someone could fix this.

Sincerly,
Roland R.

#771956#10
Date:
2014-12-06 08:50:36 UTC
From:
To:
Control: forcemerge 25759 -1

This has been reported several times, merging. The problem is that
dpkg does not have a generic way to register files not shipped in a
binary package. But even then, u-a would need to know how to register
them which would require tigher integration, wich conflicts with me
wanting to keep it generic and somewhat distribution neutral. I guess
possibly adding hook support would do though.

Thanks,
Guillem