[Pkg-fonts-devel] Dropping defoma use in TTF/OTF font packages?

Josselin Mouette joss at debian.org
Sat Nov 28 07:02:34 UTC 2009


Le samedi 28 novembre 2009 à 00:00 +0100, Davide Viti a écrit : 
> Hi all,
> 
> On Mon, Nov 16, 2009 at 09:15:31AM +0100, Josselin Mouette wrote:
> > Shouldn’t you run defoma-font purge-all in the preinst rather than the
> > prerm?
> 
> that's right: just updated my ttf-dejavu patch in [1]
> please review it again if you got the chance

I think you are missing these changes:

--- debian/preinst	(révision 1346)
+++ debian/preinst	(copie de travail)
@@ -25,15 +25,15 @@
     rm_conffile ttf-dejavu "/etc/defoma/hints/ttf-dejavu.hints"
   fi
 
-  if dpkg --compare-versions "$2" le "2.30-2"; then
+  if dpkg --compare-versions "$2" lt-nl "2.30-2"; then
       for PKG in ttf-dejavu-core ttf-dejavu-extra ; do
 	  FILE="/etc/defoma/hints/${PKG}.hints"
 	  if [ -f $FILE ]; then
               if [ -x /usr/bin/defoma-font ]; then
 		  defoma-font purge-all $FILE || true
 	      fi
-	      rm_conffile $PKG $FILE
 	  fi
+	  rm_conffile $PKG $FILE
       done
   fi
 esac

Furthermore, shouldn’t you purge the hint files in each of the packages
instead of doing it in the metapackage?

Cheers, 
-- 
 .''`.      Josselin Mouette
: :' :
`. `'   “I recommend you to learn English in hope that you in
  `-     future understand things”  -- Jörg Schilling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.alioth.debian.org/pipermail/pkg-fonts-devel/attachments/20091128/d47055a3/attachment.pgp>


More information about the Pkg-fonts-devel mailing list