[Pkg-mailman-hackers] Bug#358575: purge mailman deletes all ucf-managed conffiles

Marc Haber mh+debian-packages at zugschlus.de
Thu Mar 23 10:59:18 UTC 2006


tags #358575 patch
thanks

On Thu, Mar 23, 2006 at 11:23:44AM +0100, Marc Haber wrote:
> This is most probably a bug in the postrm, since
> sed -e ':/etc/mailman:!d' -e 's:^[0-9a-f]* *::' /var/lib/ucf/hashfile
> lists all ucf-managed conffiles, not only the ones belonging to mailman.

Patch attached. I can NMU if you wish.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835
-------------- next part --------------
--- debian/postrm.orig	2006-03-23 11:58:34.000000000 +0100
+++ debian/postrm	2006-03-23 11:58:39.000000000 +0100
@@ -8,7 +8,7 @@
   # 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 ':/etc/mailman:!d' -e 's:^[0-9a-f]* *::' /var/lib/ucf/hashfile); do
+  for file in $(sed -e '\:/etc/mailman:!d' -e 's:^[0-9a-f]* *::' /var/lib/ucf/hashfile); do
     ucf --purge ${file} 2>/dev/null
     echo -n . >&2
   done


More information about the Pkg-mailman-hackers mailing list