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

Bug#587272: warning from defoma: "It is recommended to run defoma-app purge gs"



I have fixed the problem in the Ubuntu package (8.71.dfsg.2-0ubuntu8), simply following the warning, adding

defoma-app purge gs

to the ghostscript.preinst script after all other defoma clean-up. Now the installation of this ghostscript package eliminates the defoma warning for all future package installations.

debdiff attached.

   Till
diff -u ghostscript-8.71.dfsg.2/debian/changelog ghostscript-8.71.dfsg.2/debian/changelog
--- ghostscript-8.71.dfsg.2/debian/changelog
+++ ghostscript-8.71.dfsg.2/debian/changelog
@@ -1,3 +1,11 @@
+ghostscript (8.71.dfsg.2-0ubuntu8) natty; urgency=low
+
+  * debian/ghostscript.preinst: Clean up traces of Ghostscript in defoma
+    via "defoma-app purge gs", so that when updating packages which still
+    use defoma no warnings get issued (Closes: #587272).
+
+ -- Till Kamppeter <till.kamppeter@gmail.com>  Tue,  7 Dec 2010 23:59:59 +0100
+
 ghostscript (8.71.dfsg.2-0ubuntu7) maverick; urgency=low
 
   * debian/control: Updated versioned dependency of ghostscript on gsfonts,
diff -u ghostscript-8.71.dfsg.2/debian/ghostscript.preinst ghostscript-8.71.dfsg.2/debian/ghostscript.preinst
--- ghostscript-8.71.dfsg.2/debian/ghostscript.preinst
+++ ghostscript-8.71.dfsg.2/debian/ghostscript.preinst
@@ -31,6 +31,12 @@
             rm -f /etc/defoma/ghostscript.subst-rule~
             rm -f /var/lib/defoma/ghostscript.subst-cache
         fi
+
+	# Purge old defoma stuff to avoid warnings from defoama when updating
+	# other packages which still use defoma
+        if dpkg --compare-versions "$2" lt-nl "8.71.dfsg.2-0ubuntu8"; then
+	    defoma-app purge gs 2>/dev/null || true
+	fi
     ;;
 
     abort-upgrade)

Reply to: