[Pkg-mailman-hackers] Pkg-mailman commit - rev 704 - trunk/debian
Thijs Kinkhorst
thijs at alioth.debian.org
Sun Mar 18 13:14:41 UTC 2012
Author: thijs
Date: 2012-03-18 13:14:40 +0000 (Sun, 18 Mar 2012)
New Revision: 704
Modified:
trunk/debian/changelog
trunk/debian/preinst.in
Log:
Avoid config file prompt for mailman crontab entry if this
file was unmodified.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2012-03-18 12:12:57 UTC (rev 703)
+++ trunk/debian/changelog 2012-03-18 13:14:40 UTC (rev 704)
@@ -7,8 +7,10 @@
* Add Danish debconf translation, thanks Joe Dalton (closes: #659467).
* Add 'su root list' statements to logrotate config, to cope
with logrotate >= 3.8; thanks Joël Bertrand (closes: #653766).
+ * Avoid config file prompt for mailman crontab entry if this
+ file was unmodified (closes: #655837).
- -- Thijs Kinkhorst <thijs at debian.org> Sun, 18 Mar 2012 13:11:52 +0100
+ -- Thijs Kinkhorst <thijs at debian.org> Sun, 18 Mar 2012 14:12:49 +0100
mailman (1:2.1.14-3) unstable; urgency=low
Modified: trunk/debian/preinst.in
===================================================================
--- trunk/debian/preinst.in 2012-03-18 12:12:57 UTC (rev 703)
+++ trunk/debian/preinst.in 2012-03-18 13:14:40 UTC (rev 704)
@@ -4,6 +4,17 @@
. /usr/share/debconf/confmodule
+# If we encounter a cron.d file that was originally installed by this package,
+# we remove it here so it will be replaced by a properly managed one after
+# the package upgrade.
+# This can be removed after wheezy's release.
+if [ -e /etc/cron.d/mailman ] && dpkg --compare-versions "$2" le "1:2.1.14-3"; then
+ md5sum="$(md5sum /etc/cron.d/mailman | sed -e 's/ .*//')"
+ if [ "$md5sum" = "06648bbab6cf2c5c1f542b31a51d8338" ]; then
+ rm /etc/cron.d/mailman
+ fi
+fi
+
#DEBHELPER#
abort_install()
More information about the Pkg-mailman-hackers
mailing list