Package: debian-policy
Severity: normal

Dear all,

soon after it was added, the recommendation about update-mime has to be
amended, as mime-support was recently updated to use Dpkg triggers.

Have a nice day,

-- 
Charles
>From 5fcbd4bf5ebaff88ba7a5d873756ba785974e462 Mon Sep 17 00:00:00 2001
From: Charles Plessy <ple...@debian.org>
Date: Thu, 1 Mar 2012 22:58:41 +0900
Subject: [PATCH] Do not call update-mime directly, since it is triggered by
 Dpkg.

---
 policy.sgml |   20 +++-----------------
 1 files changed, 3 insertions(+), 17 deletions(-)

diff --git a/policy.sgml b/policy.sgml
index 1a61d4f..bcbf495 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -7378,24 +7378,10 @@ Reloading <var>description</var> configuration...done.
          The <package>mime-support</package> package provides the
          <prgn>update-mime</prgn> program which allows packages to
          register programs that can show, compose, edit or print
-         MIME types.
+         MIME types, using Dpkg triggers.  Packages registering such programs
+         should <em>not</em> depend on, recommend, or suggest
+         <prgn>mime-support</prgn>.
        </p>
-
-       <p>
-         Packages containing such programs must register them
-         with <prgn>update-mime</prgn> as documented in <manref
-         name="update-mime" section="8">. They should <em>not</em> depend
-         on, recommend, or suggest <prgn>mime-support</prgn>. Instead,
-         they should just put something like the following in the
-         <tt>postinst</tt> and <tt>postrm</tt> scripts:
-
-         <example>
-  if [ -x /usr/sbin/update-mime ]; then
-      update-mime
-  fi
-         </example>
-       </p>
-
       </sect>
 
       <sect>
-- 
1.7.9

Reply via email to