[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

proposed update for highlight in squeeze.



Hi Team;

Bug #662748 results from a broken postrm in squeeze. Unfortunately the
usual "kill the postrm in the new preinst" trick won't help here, since
the bug is about manual removal.

In fact the underlying problem is more serious than described in the
bug. "apt-get remove highlight" removes a file belonging to
highlight-common, and hence breaks libhighlight-perl if the user has
that installed. Apparently people haven't encountered this very often,
luckily, perhaps because it does not manifest by upgrading, only by
manual removal of highlight (but leaving highlight-common).  

The same fix has been applied sid, but formally it can't be tested
there. I did test in a squeeze chroot, remove, distupgrade works
smoothly with this fix. Also, I verified that (surprise!) the conffile
belonging to highlight-common is no longer deleted by removing highlight.

Debdiff follows, 

diff -Nru highlight-2.16/debian/changelog highlight-2.16/debian/changelog
--- highlight-2.16/debian/changelog	2010-04-02 09:04:24.000000000 -0300
+++ highlight-2.16/debian/changelog	2012-03-07 09:40:18.000000000 -0400
@@ -1,3 +1,11 @@
+highlight (2.16-1+squeeze1) squeeze; urgency=low
+
+  * remove faulty postrm; this script caused a file owned by
+    highlight-common to be removed when highlight is removed.
+    (Closes: #662748).
+
+ -- David Bremner <bremner@debian.org>  Wed, 07 Mar 2012 09:17:12 -0400
+
 highlight (2.16-1) unstable; urgency=low
 
   * New Upstream Version
diff -Nru highlight-2.16/debian/postrm highlight-2.16/debian/postrm
--- highlight-2.16/debian/postrm	2010-04-02 09:04:24.000000000 -0300
+++ highlight-2.16/debian/postrm	1969-12-31 20:00:00.000000000 -0400
@@ -1,31 +0,0 @@
-#!/bin/sh
-# postrm script for highlight
-#
-# see: dh_installdeb(1)
-set -e
-
-
-CONFDIR=/etc/highlight
-if [ -d $CONFDIR ] 
-then
-#DEBHELPER#
-	FILES="`ls $CONFDIR |xargs`"
-	case "$1" in
-    		purge|remove)
-		 	for f in $FILES
-			 do
-			 	file=$CONFDIR/$f
-	 			if [ -f $file ]
-				then
-					rm -f $file
-				fi
-
-			 done
-			 rm -rf $CONFDIR
-    			;;
-	esac
-fi
-
-exit 0
-
-




Attachment: pgpNyAUpbzZDk.pgp
Description: PGP signature


Reply to: