summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2021-06-30 20:22:19 +0300
committerVille Skyttä <ville.skytta@iki.fi>2021-07-30 01:01:50 +0300
commit7d47a7fdd99d96c6e0c16c33e1058e7240e794a1 (patch)
treea6ff675bbf55f02b479f01d7e07be765711bd96a
parentef96ffabf3afdfabe4f9716415a945e4c998f3d8 (diff)
downloadshared-mime-info-7d47a7fdd99d96c6e0c16c33e1058e7240e794a1.tar.gz
application/x-object: add *.mod and a test case
For GRUB modules. Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/165
-rw-r--r--data/freedesktop.org.xml.in1
-rw-r--r--tests/mime-detection/list3
-rw-r--r--tests/mime-detection/pci.modbin0 -> 856 bytes
3 files changed, 3 insertions, 1 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 072db300..3ed0df72 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -3229,6 +3229,7 @@ command to generate the output files.
</match>
</magic>
<glob pattern="*.o"/>
+ <glob pattern="*.mod" weight="40"/>
</mime-type>
<mime-type type="application/annodex">
<comment>Annodex exchange format</comment>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index fd8f24d5..0237962a 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -748,7 +748,8 @@ LiberationSans-Regular.woff font/woff
nrl.trig application/trig oxo
# Copied from http://git.savannah.gnu.org/cgit/gnash.git/plain/testsuite/samples/subshapes.swf
subshapes.swf application/vnd.adobe.flash.movie
-
+# Extracted from http://archive.debian.org/debian/pool/main/g/grub2/grub-efi_1.96+20080724-16_i386.deb
+pci.mod application/x-object x
# PIE executable https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
ls application/x-executable x
diff --git a/tests/mime-detection/pci.mod b/tests/mime-detection/pci.mod
new file mode 100644
index 00000000..f32e3fc0
--- /dev/null
+++ b/tests/mime-detection/pci.mod
Binary files differ