tags 604217 + patch
tags 604217 + pending
thanks

Dear maintainer,

I've prepared an NMU for axiom (versioned as 20100701-1.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards.

(As already explained, I actually think the texhash call on purge is not
necessary, but the least intrusive way to fix this bug is to check the
exitence on purge before calling texhash; so I did that.)
diff -Nru axiom-20100701/debian/axiom-tex.postrm axiom-20100701/debian/axiom-tex.postrm
--- axiom-20100701/debian/axiom-tex.postrm	2010-05-19 20:56:13.000000000 +0200
+++ axiom-20100701/debian/axiom-tex.postrm	2010-11-24 16:17:20.000000000 +0100
@@ -2,10 +2,16 @@
 
 set -e
 
-if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then
+if [ "$1" = "remove" ] ; then
 
 	texhash
 
 fi
 
+if [ "$1" = "purge" ] ; then
+	if [ -x "/usr/bin/texhash" ] ; then
+		texhash
+	fi
+fi
+
 #DEBHELPER#
diff -Nru axiom-20100701/debian/changelog axiom-20100701/debian/changelog
--- axiom-20100701/debian/changelog	2010-07-26 20:13:20.000000000 +0200
+++ axiom-20100701/debian/changelog	2010-11-24 16:15:33.000000000 +0100
@@ -1,3 +1,11 @@
+axiom (20100701-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * axiom-tex.postrm:  Call texhash on purge only if it's still available
+    (Closes: #604217)
+
+ -- Alexander Reichle-Schmehl <toli...@debian.org>  Tue, 23 Nov 2010 12:45:28 +0100
+
 axiom (20100701-1) unstable; urgency=high
 
   * New upstream release

Reply via email to