On Tue, 16 Dec 2014, Jaldhar H. Vyas wrote: > reopen 773237 > severity wishlist > thanks
Thanks for reopening, but policy says this: Packages should try to minimize the amount of prompting they need to do, and they should ensure that the user will only ever be asked each question once. So the package is violating a "should" directive in policy and everything this bug deserves is a wishlist? This is really disappointing. Anyway, in case it helps, the fix could be something like the attached patch. Please be warned that this is *completely* untested, it's just something that could serve as the basis for the real fix. Do not forget to test the following scenarios: * Clean installs. * Upgrades from wheezy * Upgrades from current testing to the new version. * Package removals. So, this is only a suggestion, but in fact I don't see that the real fix would need to deviate a lot from it. Note that the "continue" word here is essential because we don't want the file to be managed by UCF at all (well, that's the idea). diff --git a/debian/dovecot-core.postinst b/debian/dovecot-core.postinst index fb3b8a5..adba953 100644 --- a/debian/dovecot-core.postinst +++ b/debian/dovecot-core.postinst @@ -107,12 +107,14 @@ if [ "$1" = "configure" ]; then # maintainer version, and let it handle how to manage the real # configuration file in /etc/dovecot. - # special handling for 10-ssl.conf. If it is the default from <= -6 - # we want to alter it so ucf in newer packages doesn't overwrite it. - if [ "$conffile" = 'conf.d/10-ssl.conf' ] && - [ "`ucfq --with-colons /etc/dovecot/$conffile | cut -d: -f4`" = 'No' ] && - [ "`md5sum /etc/dovecot/$conffile | cut -d\ -f1`" = '6813a2a50ff7e64b2a35af663c88c05f' ]; then - echo \# old config >> /etc/dovecot/conf.d/10-ssl.conf + # Special handling for 10-ssl.conf. + # Copy the file if it does not exist, do nothing otherwise. + if [ "$conffile" = 'conf.d/10-ssl.conf' ]; then + if [ ! -f /etc/dovecot/$conffile ]; then + cp /usr/share/dovecot/$conffile /etc/dovecot/$conffile + chmod 0644 /etc/dovecot/$conffile + fi + continue fi ucf --three-way --debconf-ok /usr/share/dovecot/$conffile /etc/dovecot/$conffile Thanks. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org