shared-mime-info/0001-Fix-multi-page-DjVu-detection-by-file.patch
2016-06-04 18:02:44 +02:00

28 lines
967 B
Diff

From e0f51b2ccda6f403f2b3abc4045d930feda765fc Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Fri, 27 May 2016 18:05:19 +0200
Subject: [PATCH] Fix multi-page DjVu detection by file
We need to have the same globs for both image/vnd.djvu+multipage and
image/vnd.djvu so that checking by file will force checking by magic,
otherwise all the multi-page files will be detected as simple
image/vnd.djvu.
---
freedesktop.org.xml.in | 2 ++
tests/list | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index c8d0361..d33063b 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -4670,6 +4670,8 @@ command to generate the output files.
</match>
</magic>
<sub-class-of type="image/vnd.djvu"/>
+ <glob pattern="*.djvu"/>
+ <glob pattern="*.djv"/>
</mime-type>
<mime-type type="image/dpx">
<_comment>DPX image</_comment>