X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=policy.sgml;h=9479fc9d5ef3269fcdcbfdbae965a9d8b59217b8;hb=73edbbc37d79bb9c3c6069c957c2bf7500fc1926;hp=43926534da730cac53b3f8dcd6ae16b0e9f1f441;hpb=fadd5e8b67183327a7b3c0f9872396242e784875;p=debian%2Fdebian-policy.git
diff --git a/policy.sgml b/policy.sgml
index 4392653..9479fc9 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -8038,33 +8038,27 @@ Reloading description configuration...done.
- Packages which provide the ability to view/show/play,
- compose, edit or print MIME types should register themselves
- as such following the current MIME support policy.
+ Packages which provide programs to view/show/play, compose, edit or
+ print MIME types should register them as such by placing a file in
+ format (RFC 1524) in the directory
+ /usr/lib/mime/packages/. The file name should be the
+ binary package's name.
The mime-support package provides the
- update-mime program which allows packages to
- register programs that can show, compose, edit or print
- MIME types.
-
-
-
- Packages containing such programs must register them
- with update-mime as documented in . They should not depend
- on, recommend, or suggest mime-support. Instead,
- they should just put something like the following in the
- postinst and postrm scripts:
-
-
- if [ -x /usr/sbin/update-mime ]; then
- update-mime
- fi
-
+ update-mime program, which integrates these
+ registrations in the /etc/mailcap file, using Dpkg
+ triggers
+ Creating, modifying or removing a file in
+ /usr/lib/mime/packages/ using maintainer scripts will
+ not activate the trigger. In that case, it can be done by calling
+ dpkg-trigger --no-await --by-package=<me> /usr/lib/mime/packages,
+ where <me> is the name of the package.
+ .
+ Packages using this facility should not depend on,
+ recommend, or suggest mime-support.
-