Package: postfix Version: 2.2.4-1 Today I compiled 2.2.4-1 on sarge (I know this version is intended to use on sid/etch), and noticed that the upgrade failed. It was easy to track down the problem - postfix-tls diverted several files, and the postfix package failed to remove these diversions because of file overwriting problems. Attached is a small patch for debian/preinst which solved the problem for me.
Regards, -- Sandor Geller [EMAIL PROTECTED]
--- postfix-2.2.4/debian/preinst 2005-07-22 13:57:53.000000000 +0200 +++ postfix-2.2.4-z/debian/preinst 2005-07-22 13:57:01.000000000 +0200 @@ -253,6 +253,21 @@ if grep -q '^tlsmgr[[:space:]]*fifo' $MASTER; then tlsmgr_warning fi + if dpkg --compare-versions $version lt 2.2.4-1; then + # Hack remove the diversions made by postfix-tls + OLDIFS=$IFS + IFS=' +' + for diversion in `dpkg-divert --list | grep postfix-tls`; do + divertedto=`echo $diversion | cut -f 5 -d " "` + origfile=`echo $diversion | cut -f 3 -d " "` + rm -f $origfile + dpkg-divert --package postfix-tls --remove --rename \ + --divert $divertedto $origfile + done + IFS=$OLDIFS + fi if [ ! start-stop-daemon -K -q -o \ --pidfile /var/spool/postfix/pid/master.pid \

