Package: mcomix Version: 1.2.1-1.1 Followup-For: Bug #931645 Attached patch fixes the issue. An updated package is also attached.
Regards, -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mcomix depends on: ii python 2.7.16-1 ii python-gtk2 2.24.0-6 ii python-pil 6.1.0-1 ii python-pkg-resources 41.0.1-1 mcomix recommends no packages. Versions of packages mcomix suggests: ii unrar 1:5.6.6-2 -- no debconf information
Add support for PIL version 6 or newer, using __version__ instead of VERSION. --- a/mcomix/run.py +++ b/mcomix/run.py @@ -203,17 +203,17 @@ try: import PIL.Image - assert PIL.Image.VERSION >= '1.1.5' + assert PIL.Image.__version__ >= '6.0.0' except AssertionError: log.error( _("You don't have the required version of the Python Imaging"), end=' ') log.error( _('Library (PIL) installed.') ) - log.error( _('Installed PIL version is: %s') % Image.VERSION ) - log.error( _('Required PIL version is: 1.1.5 or higher') ) + log.error( _('Installed PIL version is: %s') % Image.__version__ ) + log.error( _('Required PIL version is: 6.0.0 or higher') ) wait_and_exit() except ImportError: - log.error( _('Python Imaging Library (PIL) 1.1.5 or higher is required.') ) + log.error( _('Python Imaging Library (PIL) 6.0.0 or higher is required.') ) log.error( _('No version of the Python Imaging Library was found on your system.') ) wait_and_exit()
diff -ru --new-file mcomix-1.2.1-1.1/debian/changelog mcomix-1.2.1-1.2/debian/changelog --- mcomix-1.2.1-1.1/debian/changelog 2018-05-30 00:35:28.000000000 -0400 +++ mcomix-1.2.1-1.2/debian/changelog 2019-07-10 11:07:26.000000000 -0400 @@ -1,3 +1,10 @@ +mcomix (1.2.1-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Update python-pil version check to version > 6.0. (Closes: #931645) + + -- Daniel Serpell <daniel.serp...@gmail.com> Wed, 10 Jul 2019 11:07:26 -0400 + mcomix (1.2.1-1.1) unstable; urgency=medium * Non-maintainer upload. diff -ru --new-file mcomix-1.2.1-1.1/debian/control mcomix-1.2.1-1.2/debian/control --- mcomix-1.2.1-1.1/debian/control 2018-05-30 00:35:28.000000000 -0400 +++ mcomix-1.2.1-1.2/debian/control 2019-07-10 11:07:26.000000000 -0400 @@ -10,7 +10,7 @@ Package: mcomix Architecture: all -Depends: ${misc:Depends}, ${python:Depends}, python-gtk2, python-pil +Depends: ${misc:Depends}, ${python:Depends}, python-gtk2, python-pil (>= 6.0.0) Suggests: unrar Description: GTK+ image viewer for comic books MComix is an user-friendly, customizable image viewer. It is specifically diff -ru --new-file mcomix-1.2.1-1.1/debian/patches/fix-pil-6.diff mcomix-1.2.1-1.2/debian/patches/fix-pil-6.diff --- mcomix-1.2.1-1.1/debian/patches/fix-pil-6.diff 1969-12-31 21:00:00.000000000 -0300 +++ mcomix-1.2.1-1.2/debian/patches/fix-pil-6.diff 2019-07-10 11:05:29.000000000 -0400 @@ -0,0 +1,25 @@ +Add support for PIL version 6 or newer, using __version__ instead of VERSION. +--- a/mcomix/run.py ++++ b/mcomix/run.py +@@ -203,17 +203,17 @@ + + try: + import PIL.Image +- assert PIL.Image.VERSION >= '1.1.5' ++ assert PIL.Image.__version__ >= '6.0.0' + + except AssertionError: + log.error( _("You don't have the required version of the Python Imaging"), end=' ') + log.error( _('Library (PIL) installed.') ) +- log.error( _('Installed PIL version is: %s') % Image.VERSION ) +- log.error( _('Required PIL version is: 1.1.5 or higher') ) ++ log.error( _('Installed PIL version is: %s') % Image.__version__ ) ++ log.error( _('Required PIL version is: 6.0.0 or higher') ) + wait_and_exit() + + except ImportError: +- log.error( _('Python Imaging Library (PIL) 1.1.5 or higher is required.') ) ++ log.error( _('Python Imaging Library (PIL) 6.0.0 or higher is required.') ) + log.error( _('No version of the Python Imaging Library was found on your system.') ) + wait_and_exit() + diff -ru --new-file mcomix-1.2.1-1.1/debian/patches/series mcomix-1.2.1-1.2/debian/patches/series --- mcomix-1.2.1-1.1/debian/patches/series 1969-12-31 21:00:00.000000000 -0300 +++ mcomix-1.2.1-1.2/debian/patches/series 2019-07-10 11:02:35.000000000 -0400 @@ -0,0 +1 @@ +fix-pil-6.diff
mcomix_1.2.1-1.2.debian.tar.xz
Description: application/xz
Format: 3.0 (quilt) Source: mcomix Binary: mcomix Architecture: all Version: 1.2.1-1.2 Maintainer: Krzysztof Klimonda <kklimo...@syntaxhighlighted.com> Uploaders: Emfox Zhou <em...@debian.org> Homepage: http://mcomix.sourceforge.net/ Standards-Version: 3.9.7 Build-Depends: debhelper (>= 8.0.0~) Build-Depends-Indep: python (>= 2.6.6-3~), python-setuptools, dh-python Package-List: mcomix deb x11 optional arch=all Checksums-Sha1: c18b920269dea5c77f97af4c1d72d195c13a4c5f 571128 mcomix_1.2.1.orig.tar.bz2 bf33d6729000836f9a579786187f67a0e3789068 2588 mcomix_1.2.1-1.2.debian.tar.xz Checksums-Sha256: 7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b 571128 mcomix_1.2.1.orig.tar.bz2 ae82dceb4189300212a9adf2580fbd832b041a438a97ab4fd10346ab9ce29220 2588 mcomix_1.2.1-1.2.debian.tar.xz Files: 1d05ed7596bd670e5b3a97896e6d4d47 571128 mcomix_1.2.1.orig.tar.bz2 1c9365630c40d6ea8b24e7cf2df06562 2588 mcomix_1.2.1-1.2.debian.tar.xz