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 2021-10-23 00:50:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-magic (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-magic.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-magic"

Sat Oct 23 00:50:13 2021 rev:6 rq:926972 version:0.4.18

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-magic/python-python-magic.changes  
2021-04-19 21:05:57.072025040 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-magic.new.1890/python-python-magic.changes
        2021-10-23 00:50:22.141121367 +0200
@@ -1,0 +2,10 @@
+Fri Oct 22 10:09:21 UTC 2021 - Matej Cepl <mc...@suse.com>
+
+- Use pyunittest macro instead of the home-grown solution.
+
+-------------------------------------------------------------------
+Fri Oct 22 08:02:27 UTC 2021 - Martin Li??ka <mli...@suse.cz>
+
+- Add fix-support-file-5.41.patch to support file 5.41.
+
+-------------------------------------------------------------------

New:
----
  fix-support-file-5.41.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-magic.spec ++++++
--- /var/tmp/diff_new_pack.7Kv2MD/_old  2021-10-23 00:50:22.661121484 +0200
+++ /var/tmp/diff_new_pack.7Kv2MD/_new  2021-10-23 00:50:22.665121485 +0200
@@ -30,6 +30,7 @@
 Patch0:         fix-test.patch
 Patch1:         fix-test-tumbleweed.patch
 Patch2:         fix-4-file-5.40.patch
+Patch3:         fix-support-file-5.41.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  file
@@ -62,6 +63,9 @@
 %if %{?pkg_vcmp:%{pkg_vcmp file >= 5.40}}%{!?pkg_vcmp:0}
 %patch2 -p0
 %endif
+%if %{?pkg_vcmp:%{pkg_vcmp file >= 5.41}}%{!?pkg_vcmp:0}
+%patch3 -p1
+%endif
 
 %build
 %python_build
@@ -72,7 +76,7 @@
 
 %check
 export LC_ALL=en_US.UTF-8
-%python_expand PYTHONPATH=. $python test/test.py
+%pyunittest -v test.test
 
 %files %{python_files}
 %license LICENSE

++++++ fix-support-file-5.41.patch ++++++
diff --git a/test/test.py b/test/test.py
index 8ea9138..968f904 100755
--- a/test/test.py
+++ b/test/test.py
@@ -70,7 +70,7 @@ class MagicTest(unittest.TestCase):
         try:
             m = magic.Magic(mime=True)
             self.assert_values(m, {
-                'magic._pyc_': 'text/x-bytecode.python',
+                'magic._pyc_': ('application/octet-stream', 
'text/x-bytecode.python', 'application/x-bytecode.python'),
                 'test.pdf': 'application/pdf',
                 'test.gz': ('application/gzip', 'application/x-gzip'),
                 'test.snappy.parquet': 'application/octet-stream',

Reply via email to