From 05844cd6c0578b9e5a6dbab3b40960ce58903541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Stucke?= Date: Tue, 2 Jul 2024 15:07:34 +0200 Subject: [PATCH] patool unpacker: added lz4 MIME type which would have been already supported by patool and the lz4 tool was also already installed --- .../plugins/unpacking/patool/code/patool.py | 1 + .../plugins/unpacking/patool/test/data/test.lz4 | Bin 0 -> 147 bytes .../unpacking/patool/test/test_plugin_patool.py | 1 + 3 files changed, 2 insertions(+) create mode 100644 fact_extractor/plugins/unpacking/patool/test/data/test.lz4 diff --git a/fact_extractor/plugins/unpacking/patool/code/patool.py b/fact_extractor/plugins/unpacking/patool/code/patool.py index cd74564a..961edf81 100644 --- a/fact_extractor/plugins/unpacking/patool/code/patool.py +++ b/fact_extractor/plugins/unpacking/patool/code/patool.py @@ -24,6 +24,7 @@ 'application/x-gzip', 'application/x-lha', 'application/x-lrzip', + 'application/x-lz4', 'application/x-lzh', 'application/x-lzh-compressed', 'application/x-lzip', diff --git a/fact_extractor/plugins/unpacking/patool/test/data/test.lz4 b/fact_extractor/plugins/unpacking/patool/test/data/test.lz4 new file mode 100644 index 0000000000000000000000000000000000000000..68458a0ec59229b436744708bcf0b87bf24f419d GIT binary patch literal 147 zcmWN^IT1oZ3;@tyAc7hN$>!KihXF+7+5#1S1__8j1Mc8;?{a%w>;5^9<1FF`Ry9xU z5hww34_@YD+Km`bfOPjbNIT=k@2Vx8T7p>kZlWdxp_X>9DkzkS% R;nWc6v^Ip`@%MbczCV!9C~W`$ literal 0 HcmV?d00001 diff --git a/fact_extractor/plugins/unpacking/patool/test/test_plugin_patool.py b/fact_extractor/plugins/unpacking/patool/test/test_plugin_patool.py index 5fb3d12a..5600db7e 100644 --- a/fact_extractor/plugins/unpacking/patool/test/test_plugin_patool.py +++ b/fact_extractor/plugins/unpacking/patool/test/test_plugin_patool.py @@ -48,6 +48,7 @@ def test_archive_extraction(self, in_file, ignore): 'test.gz', 'test.lrz', 'test.lz', + 'test.lz4', 'test.lzo', 'test.rz', 'test.xz',