diff -Nru python-magic-0.4.15/debian/changelog python-magic-0.4.15/debian/changelog --- python-magic-0.4.15/debian/changelog 2018-02-04 16:43:24.000000000 +0000 +++ python-magic-0.4.15/debian/changelog 2018-07-21 22:09:26.000000000 +0000 @@ -1,3 +1,9 @@ +python-magic (2:0.4.15-2) unstable; urgency=high + + * Disable gzip test. Closes: #897471 + + -- Christoph Biedl Sun, 22 Jul 2018 00:09:26 +0200 + python-magic (2:0.4.15-1) unstable; urgency=low * Upload to unstable diff -Nru python-magic-0.4.15/debian/control python-magic-0.4.15/debian/control --- python-magic-0.4.15/debian/control 2018-01-08 07:35:11.000000000 +0000 +++ python-magic-0.4.15/debian/control 2018-07-21 22:09:26.000000000 +0000 @@ -1,7 +1,9 @@ Source: python-magic Maintainer: Christoph Biedl Homepage: https://github.com/ahupp/python-magic/ -Standards-Version: 4.1.3 +Standards-Version: 4.1.5 +Vcs-Browser: https://git.in-ulm.de/cbiedl/python-magic +Vcs-Git: https://git.in-ulm.de/cbiedl/python-magic.git Testsuite: autopkgtest-pkg-python Build-Depends: debhelper (>= 11~), dh-python, @@ -11,8 +13,6 @@ python3-setuptools, Priority: extra Section: libs -X-Python-Version: >= 2.6 -X-Python3-Version: >= 3.3 Package: python-magic Architecture: all diff -Nru python-magic-0.4.15/debian/patches/disable-gzip-test.patch python-magic-0.4.15/debian/patches/disable-gzip-test.patch --- python-magic-0.4.15/debian/patches/disable-gzip-test.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-magic-0.4.15/debian/patches/disable-gzip-test.patch 2018-07-21 22:09:26.000000000 +0000 @@ -0,0 +1,18 @@ +Subject: Disable gzip test, it cannot cope with a recent change in libmagic +Author: Christoph Biedl +Date: 2018-07-21 +Bug-Debian: https://bugs.debian.org/897471 +Bug-Upstream: https://github.com/ahupp/python-magic/issues/173 + +--- a/test/test.py ++++ b/test/test.py +@@ -67,9 +67,6 @@ + self.assert_values(m, { + 'magic._pyc_': 'python 2.4 byte-compiled', + 'test.pdf': 'PDF document, version 1.2', +- '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'), + 'text.txt': 'ASCII text', + }) + finally: diff -Nru python-magic-0.4.15/debian/patches/libmagic-compat.patch python-magic-0.4.15/debian/patches/libmagic-compat.patch --- python-magic-0.4.15/debian/patches/libmagic-compat.patch 2018-01-19 19:55:29.000000000 +0000 +++ python-magic-0.4.15/debian/patches/libmagic-compat.patch 2018-07-21 22:09:26.000000000 +0000 @@ -1,8 +1,8 @@ -Subject: libmagic compability +Subject: libmagic compatibility Origin: libmagic-compat branch, commit 315cb4c Upstream-Author: Adam Hupp Date: Mon Dec 4 11:55:27 2017 -0800 -Last-Updated: 2018-01-15 +Last-Update: 2018-01-15 --- a/LICENSE +++ b/LICENSE diff -Nru python-magic-0.4.15/debian/patches/series python-magic-0.4.15/debian/patches/series --- python-magic-0.4.15/debian/patches/series 2018-01-19 19:55:29.000000000 +0000 +++ python-magic-0.4.15/debian/patches/series 2018-07-21 22:09:26.000000000 +0000 @@ -1,2 +1,3 @@ cherry-pick.0.4.11-32-g9d127ce.update-filetype-reported-by-libmagic-5-23-for-keep-going-true.patch libmagic-compat.patch +disable-gzip-test.patch