[Pkg-mailman-hackers] Pkg-mailman commit - rev 338 - trunk/debian
Thijs Kinkhorst
thijs at costa.debian.org
Tue Aug 22 00:09:14 UTC 2006
Author: thijs
Date: 2006-08-22 00:09:13 +0000 (Tue, 22 Aug 2006)
New Revision: 338
Modified:
trunk/debian/changelog
trunk/debian/postrm
Log:
* Only use ucf on purge when it's available.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2006-08-22 00:00:34 UTC (rev 337)
+++ trunk/debian/changelog 2006-08-22 00:09:13 UTC (rev 338)
@@ -9,8 +9,9 @@
* Use chown root:list instead of deprecated root.list.
* Remove pre-sarge upgrading code; this eliminates a lot of cruft,
non-debconf prompting and two debconf templates.
+ * Only use ucf on purge when it's available.
- -- Thijs Kinkhorst <thijs at debian.org> Tue, 22 Aug 2006 01:59:21 +0200
+ -- Thijs Kinkhorst <thijs at debian.org> Tue, 22 Aug 2006 02:09:00 +0200
mailman (1:2.1.8-2) unstable; urgency=low
Modified: trunk/debian/postrm
===================================================================
--- trunk/debian/postrm 2006-08-22 00:00:34 UTC (rev 337)
+++ trunk/debian/postrm 2006-08-22 00:09:13 UTC (rev 338)
@@ -7,13 +7,15 @@
if [ "$1" = purge ]; then
# HACK: At present there is no way to ask ucf for registered files
# except for directly querying its database.
- echo -n "Purging files from ucf database " >&2
- for file in $(sed -e '\|^[0-9a-fA-F]\+[[:space:]]\+/etc/mailman/|!d' -e 's|^[0-9a-fA-F]\+[[:space:]]\+||' /var/lib/ucf/hashfile); do
- ucf --purge ${file} 2>/dev/null
- echo -n . >&2
- done
- ucf --purge /etc/cron.d/mailman 2>/dev/null
- echo ". done." >&2
+ if which ucf >/dev/null; then
+ echo -n "Purging files from ucf database " >&2
+ for file in $(sed -e '\|^[0-9a-fA-F]\+[[:space:]]\+/etc/mailman/|!d' -e 's|^[0-9a-fA-F]\+[[:space:]]\+||' /var/lib/ucf/hashfile); do
+ ucf --purge ${file} 2>/dev/null
+ echo -n . >&2
+ done
+ ucf --purge /etc/cron.d/mailman 2>/dev/null
+ echo ". done." >&2
+ fi
fi
if [ "$1" = purge ]; then
More information about the Pkg-mailman-hackers
mailing list