Package: apt-listchanges
Version: 2.68
Severity: important
Tags: patch
Here is what my patch fixes :
* Fixed the postrm script to remove /etc/apt/listchanges.conf on purge
and rewrote the test for ucf existence (was using "which" which isn't
essential)
* Fixed the postinst script not to use ucf if /etc/apt/listchanges.conf
doesn't exist, ie was purged
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)
Versions of packages apt-listchanges depends on:
ii apt 0.6.46.1 Advanced front-end for dpkg
ii debconf [debconf-2.0] 1.5.5 Debian configuration management sy
ii debianutils 2.17.3 Miscellaneous utilities specific t
ii python 2.4.3-11 An interactive high-level object-o
ii python-apt 0.6.19 Python interface to libapt-pkg
ii python-support 0.5.3 automated rebuilding support for p
ii ucf 2.0015 Update Configuration File: preserv
Versions of packages apt-listchanges recommends:
ii exim4 4.63-4 metapackage to ease exim MTA (v4)
ii exim4-daemon-light [mail-tran 4.63-4 lightweight exim MTA (v4) daemon
-- debconf information excluded
--- apt-listchanges-2.68/debian/changelog 2006-10-04 12:06:35.000000000
+0200
+++ apt-listchanges-2.69/debian/changelog 2006-10-07 18:51:22.000000000
+0200
@@ -1,3 +1,13 @@
+apt-listchanges (2.69) unstable; urgency=low
+
+ * Fixed the postrm script to remove /etc/apt/listchanges.conf on purge
+ and rewrote the test for ucf existence (was using "which" which isn't
+ essential)
+ * Fixed the postinst script not to use ucf if /etc/apt/listchanges.conf
+ doesn't exist, ie was purged
+
+ -- Damien Laniel <[EMAIL PROTECTED]> Sat, 7 Oct 2006 18:43:24 +0200
+
apt-listchanges (2.68) unstable; urgency=low
* Fix the mail instantiation, thanks to Daniel Lublin (Closes: 391016).
diff -ru apt-listchanges-2.68/debian/postinst
apt-listchanges-2.69/debian/postinst
--- apt-listchanges-2.68/debian/postinst 2006-10-03 09:56:52.000000000
+0200
+++ apt-listchanges-2.69/debian/postinst 2006-10-07 17:42:52.000000000
+0200
@@ -31,7 +31,11 @@
db_get apt-listchanges/which
echo "which=$RET" >> $PREFERENCES.new
- ucf --debconf-ok $PREFERENCES.new $PREFERENCES
+ if [ -f $PREFERENCES ]; then
+ ucf --debconf-ok $PREFERENCES.new $PREFERENCES
+ else
+ mv $PREFERENCES.new $PREFERENCES
+ fi
rm -f $PREFERENCES.new
## Cleanup from older versions
diff -ru apt-listchanges-2.68/debian/postrm apt-listchanges-2.69/debian/postrm
--- apt-listchanges-2.68/debian/postrm 2006-10-03 09:56:52.000000000 +0200
+++ apt-listchanges-2.69/debian/postrm 2006-10-07 15:52:44.000000000 +0200
@@ -11,9 +11,10 @@
if [ "$1" = "purge" ]; then
rm -f $hook.disabled
rm -f /var/lib/apt/listchanges.db
- if wich ucf >/dev/null 2>&1; then
+ if [ ucf --help > /dev/null 2>&1 ]; then
ucf -p /etc/apt/listchanges.conf
fi
+ rm -f /etc/apt/listchanges.conf
fi
#DEBHELPER#