From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- .../files/python-magic-0.4.15-fix-gzip-test.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dev-python/python-magic/files/python-magic-0.4.15-fix-gzip-test.patch (limited to 'dev-python/python-magic/files/python-magic-0.4.15-fix-gzip-test.patch') diff --git a/dev-python/python-magic/files/python-magic-0.4.15-fix-gzip-test.patch b/dev-python/python-magic/files/python-magic-0.4.15-fix-gzip-test.patch new file mode 100644 index 000000000000..d48637139e2f --- /dev/null +++ b/dev-python/python-magic/files/python-magic-0.4.15-fix-gzip-test.patch @@ -0,0 +1,19 @@ +commit e83487a20bacd4f9b33d0478861671bf79468f59 +Author: Louis Sautier +Date: Mon Aug 13 12:15:13 2018 +0200 + + Allow x-gzip as MIME type for gzip files, fixes #96 + +diff --git a/test/test.py b/test/test.py +index e29335f..e3ee703 100755 +--- a/test/test.py ++++ b/test/test.py +@@ -54,7 +54,7 @@ class MagicTest(unittest.TestCase): + self.assert_values(m, { + 'magic._pyc_': 'application/octet-stream', + 'test.pdf': 'application/pdf', +- 'test.gz': 'application/gzip', ++ 'test.gz': ('application/gzip', 'application/x-gzip'), + 'text.txt': 'text/plain', + b'\xce\xbb'.decode('utf-8'): 'text/plain', + b'\xce\xbb': 'text/plain', -- cgit v1.3.1