Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-magic for openSUSE:Factory checked in at 2023-08-02 16:47:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-magic (Old) and /work/SRC/openSUSE:Factory/.python-python-magic.new.22712 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-magic" Wed Aug 2 16:47:51 2023 rev:12 rq:1101966 version:0.4.27 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-magic/python-python-magic.changes 2023-04-22 21:58:25.392485659 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-magic.new.22712/python-python-magic.changes 2023-08-02 16:47:54.644425795 +0200 @@ -1,0 +2,6 @@ +Wed Aug 2 09:28:03 UTC 2023 - Dominique Leuenberger <dims...@opensuse.org> + +- Add magic-file-5.45.patch: fix test suite with file 5.45 + (gh#ahupp/python-magic#290). + +------------------------------------------------------------------- New: ---- magic-file-5.45.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-magic.spec ++++++ --- /var/tmp/diff_new_pack.o7y0cc/_old 2023-08-02 16:47:56.144434920 +0200 +++ /var/tmp/diff_new_pack.o7y0cc/_new 2023-08-02 16:47:56.184435163 +0200 @@ -28,6 +28,7 @@ URL: https://github.com/ahupp/python-magic Source: https://github.com/ahupp/python-magic/archive/%{version}.tar.gz Patch0: https://github.com/ahupp/python-magic/commit/4ffcd591.patch +Patch1: magic-file-5.45.patch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} ++++++ magic-file-5.45.patch ++++++ Index: python-magic-0.4.27/test/python_magic_test.py =================================================================== --- python-magic-0.4.27.orig/test/python_magic_test.py +++ python-magic-0.4.27/test/python_magic_test.py @@ -108,7 +108,8 @@ class MagicTest(unittest.TestCase): self.assert_values(m, { 'magic._pyc_': 'python 2.4 byte-compiled', 'test.pdf': ('PDF document, version 1.2', - 'PDF document, version 1.2, 2 pages'), + 'PDF document, version 1.2, 2 pages', + 'PDF document, version 1.2, 2 page(s)'), 'test.gz': ('gzip compressed data, was "test", from Unix, last ' 'modified: Sun Jun 29 01:32:52 2008', Index: python-magic-0.4.27/test/libmagic_test.py =================================================================== --- python-magic-0.4.27.orig/test/libmagic_test.py +++ python-magic-0.4.27/test/libmagic_test.py @@ -15,7 +15,7 @@ class MagicTestCase(unittest.TestCase): filename = os.path.join(TESTDATA_DIR, 'test.pdf') expected_mime_type = 'application/pdf' expected_encoding = 'us-ascii' - expected_name = ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages') + expected_name = ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages', 'PDF document, version 1.2, 2 page(s)') def assert_result(self, result): self.assertEqual(result.mime_type, self.expected_mime_type)