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

2010-12-07 Thread Till Kamppeter
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.kamppe...@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)


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

2010-12-03 Thread Thomas Arendsen Hein
Package: gs
Version: 8.64~dfsg-1+squeeze1
Severity: normal


Just a quick me too:

Setting up ttf-tiresias (0.1-1.1) ...
W: gs is already removed. It is recommended to run defoma-app purge gs.
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-tiresias

 and a possible explanation:

Description: Transitional package
 This dummy package is provided for a smooth transition from the
 previous gs package (the package name has been changed to ghostscript).
 It may safely be removed after installation.

After I purged this package, I did not get further defoma warnings when
installing and removing another ttf font package.

Regards,
Thomas

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (550, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gs depends on:
ii  ghostscript 8.71~dfsg2-6 The GPL Ghostscript PostScript/PDF
ii  ghostscript-x   8.71~dfsg2-6 The GPL Ghostscript PostScript/PDF

gs recommends no packages.

gs suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org