On 2018-01-14 12:23, Mehdi Dogguy wrote: >> * 'postinst configure' always installs the alternative >> * 'prerm remove' removes the alternative >> * 'postrm remove' and 'postrm disappear' remove the alternative > > Unfortunately, the latter raises the following lintian warning: > https://lintian.debian.org/tags/maintainer-script-should-not-use-update-alternatives-remove.html > > Are you positive this is needed? If so, is it a bug in lintian?
The bug template probably predates that lintian warning ... Since dpkg does not allow to explicitly deconfigure a package it's hard do test these corner cases. It's also unclear how a regular package could 'disappear', since it either has /usr/share/doc/$pkg/copyright or a /usr/share/doc/$pkg symlink, and these are very unlikely to be taken over by another package. Without a clear policy on handling alternatives it's hard to decide whether lintian is wrong here ... Andreas