- Update the patch magic-new-file.patch to work with newer file

package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal 2019-07-04 12:09:43 +00:00 committed by Git OBS Bridge
parent 070d16a1c8
commit 573f93ed14
3 changed files with 19 additions and 9 deletions

View File

@ -49,14 +49,18 @@ Index: python-magic-0.4.15/test/test.py
def test_from_buffer_str_and_bytes(self): def test_from_buffer_str_and_bytes(self):
m = magic.Magic(mime=True) m = magic.Magic(mime=True)
@@ -67,9 +68,11 @@ class MagicTest(unittest.TestCase): @@ -64,12 +65,12 @@ class MagicTest(unittest.TestCase):
('gzip compressed data, was "test", from Unix, last ' 'magic._pyc_': 'python 2.4 byte-compiled',
'modified: Sun Jun 29 01:32:52 2008', 'test.pdf': 'PDF document, version 1.2',
'gzip compressed data, was "test", last modified' 'test.gz':
- ('gzip compressed data, was "test", from Unix, last '
- 'modified: Sun Jun 29 01:32:52 2008',
- 'gzip compressed data, was "test", last modified'
- ': Sun Jun 29 01:32:52 2008, from Unix'), - ': Sun Jun 29 01:32:52 2008, from Unix'),
+ ': Sun Jun 29 01:32:52 2008, from Unix', + ('gzip compressed data, was "test", from Unix, last modified: Sun Jun 29 01:32:52 2008',
+ 'gzip compressed data, was "test", last modified' + 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix',
+ ': Sun Jun 29 01:32:52 2008, from Unix, original size 15'), + 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix, original size 15',
+ 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix, original size modulo 2^32 15'),
'text.txt': 'ASCII text', 'text.txt': 'ASCII text',
- }) - })
+ }, buf_equals_file=False) + }, buf_equals_file=False)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 4 12:09:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update the patch magic-new-file.patch to work with newer file
package
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 21 10:31:23 UTC 2018 - tchvatal@suse.com Tue Aug 21 10:31:23 UTC 2018 - tchvatal@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-python-magic # spec file for package python-python-magic
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #