Bug#699647: proftpd-mod-geoip: /usr/lib/proftpd/mod_geoip.so missing after upgrade from sid
Andreas Beckmann
anbe at debian.org
Fri Oct 18 15:55:47 UTC 2013
Followup-For: Bug #699647
Control: found -1 1.3.5~rc3-2.1
The problem is still present and this time I dug into it and analyzed
the real cause: the insane postrm script in 0.3-1, see #726742
Adding Breaks/Replaces against a package itself is useless, so drop them
again.
To fix this, add a proftpd-mod-geoip.preinst script that checks for
existence of a postrm script in the previous version and delete this
bad script ...
something like
#!/bin/sh
set -e
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" lt-nl "0.3-1+deb7u1"
then
rm -fv /var/lib/dpkg/info/proftpd-mod-geoip.postrm
fi
;;
esac
#DEBHELPER#
(assuming this gets fixed in wheezy with version 0.3-1+deb7u1)
(it's important to check in the install case as well, becuase the package
may be in config-files-remaining state where the bad postrm still exists
Andreas
More information about the Pkg-proftpd-maintainers
mailing list