Control: tags -1 + wontfix Control: retitle -1 Purging dovecot-common removes config files owned by dovecot-core
Hi, On 07:32 Thu 20 Dec , Jaldhar H. Vyas wrote: > On Thu, 20 Dec 2012, Alexander Galanin wrote: > > > dovecot-core (version 1:2.1.7-2~bpo60+1) is installed. But I installed > > dovecot > > and dovecot-core from aptitude without upgrading dovecot-common from > > 1:1.2.15-7 > > to 1:2.1.7-2~bpo60+1. > > > > Ok you should not have been able to do that. It sounds like dovecot-core > doesn't have strict enough dependencies. I will investigate. The Breaks/Replaces between dovecot-core and dovecot-common were indeed strict enough. What probably happened was that dovecot-common was removed by APT, however it remained in rc state, with 1.2.15's postrm in place. Purging dovecot-common indeed removed dovecot.conf, as 1.2.15's postrm didn't check if the package was still owning the files via ucfq. A correct way to handle this would have been for dovecot-core to remove /var/lib/dpkg/info/dovecot-common.postrm or to *depend* on the transitional dovecot-common package (as the transitional package doesn't have one). Anyway, this didn't happen during the wheezy release cycle, and it's too late to do anything about it now. I'm not closing the bug, just in case there's somebody out there with dovecot-common still installed. I'm marking this as wontfix though, since the best we can do is an upload to wheezy-lts and/or adding a line in dovecot-core's postinst that will remove dovecot-common's postrm from /var/lib/dpkg/info, if it's still there. Regards, Apollon