diff options
author | Ingo Brückl <ib@wupperonline.de> | 2023-03-09 18:11:59 +0100 |
---|---|---|
committer | Ingo Brückl <ib@oddnet.de> | 2023-09-18 19:47:04 +0000 |
commit | bd525be1dea7725d436f8b8a74c9a9968e9c8775 (patch) | |
tree | 0c146b855f3cba8d4cf7579934b7ad180e05dcae | |
parent | 382e7418fd0cef578add99ee5f59a8cc057f7b40 (diff) |
Add application/x-bzip for bzip2's deprecated predecessor bzip
Also add application/x-bzip-compressed-tar.
The deprecated predecessor of bzip2 has its own magic string.
-rw-r--r-- | data/freedesktop.org.xml.in | 15 | ||||
-rw-r--r-- | tests/mime-detection/list | 4 | ||||
-rw-r--r-- | tests/mime-detection/test.bz | bin | 0 -> 29 bytes | |||
-rw-r--r-- | tests/mime-detection/test.tar.bz | bin | 0 -> 92 bytes |
4 files changed, 19 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 6623684..1c6fa56 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -1605,6 +1605,21 @@ command to generate the output files. <generic-icon name="x-office-document"/> <glob pattern="*.dvi.bz2"/> </mime-type> + <mime-type type="application/x-bzip"> + <comment>Bzip archive</comment> + <generic-icon name="package-x-generic"/> + <magic> + <match type="string" value="BZ0" offset="0"/> + </magic> + <glob pattern="*.bz"/> + </mime-type> + <mime-type type="application/x-bzip-compressed-tar"> + <comment>Tar archive (bzip-compressed)</comment> + <generic-icon name="package-x-generic"/> + <sub-class-of type="application/x-bzip"/> + <glob pattern="*.tar.bz"/> + <glob pattern="*.tbz"/> + </mime-type> <mime-type type="application/x-bzip2"> <comment>Bzip2 archive</comment> <generic-icon name="package-x-generic"/> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index a567784..0050cf4 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -503,6 +503,10 @@ good-1-delta-lzma2.tiff.xz application/x-xz # https://bugs.freedesktop.org/show_bug.cgi?id=55254 sample.png.lzma application/x-lzma ox spinboxes-0.1.1-Linux.tar.xz application/x-xz-compressed-tar ox +# Created using bzip Version 0.21 +test.bz application/x-bzip +# Created using GNU tar 1.34 and bzip Version 0.21 +test.tar.bz application/x-bzip-compressed-tar ox # Created using lzip 1.1 test.lz application/x-lzip # Created using Ark 16.07.70 + libarchive 3.1.2 diff --git a/tests/mime-detection/test.bz b/tests/mime-detection/test.bz Binary files differnew file mode 100644 index 0000000..8e72025 --- /dev/null +++ b/tests/mime-detection/test.bz diff --git a/tests/mime-detection/test.tar.bz b/tests/mime-detection/test.tar.bz Binary files differnew file mode 100644 index 0000000..b3efb7d --- /dev/null +++ b/tests/mime-detection/test.tar.bz |