Bug#408826: shared-mime-info: identify dpatch files as diff

Daniel Leidert daniel.leidert at wgdd.de
Sun Jan 28 18:08:29 CET 2007


Am Sonntag, den 28.01.2007, 16:30 +0100 schrieb Fabian Greffrath:
> package: shared-mime-info
> version: 0.19-1
> severity: wishlist
> tags: patch
> 
> Hi!
> 
> Please make dpatch-files (or actually all files ending on .dpatch) being
> recognized as diff-files.

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=386492.

> A trivial patch could be:
>         --- /usr/share/mime/packages/freedesktop.org.xml 2007-01-28
>         16:27:15.000000000 +0100
>         +++ /usr/share/mime/packages/freedesktop.org.xml 2007-01-28
>         16:27:53.000000000 +0100
>         @@ -12835,6 +12835,7 @@
>              </magic>
>              <glob pattern="*.diff"/>
>              <glob pattern="*.patch"/>
>         +    <glob pattern="*.dpatch"/>
>            </mime-type>
>            <mime-type type="text/x-python">
>              <sub-class-of type='application/x-executable'/>

<match value="#! /bin/sh /usr/share/dpatch/dpatch-run" type="string" offset="0"/>
<match value="#!/bin/sh /usr/share/dpatch/dpatch-run" type="string" offset="0"/>

But I'm not sure, if .doatch files should really be added to
text/x-patch. Maybe a subtype text/x-dpatch, that is a sub-class-of
text/x-patch would be better.

Regards, Daniel






More information about the Pkg-gnome-maintainers mailing list