lilac/repo/mcomix/01-pillow_version.patch

16 lines
698 B
Diff
Raw Normal View History

2023-07-03 19:01:10 +00:00
--- mcomix/run.py.orig 2023-07-03 21:39:35.146479272 +0300
+++ mcomix/run.py 2023-07-03 21:40:16.742507561 +0300
@@ -122,7 +122,11 @@
try:
import PIL.Image
- if PIL.__version__ < '6.0.0':
+ try:
+ pil_major_version = int(PIL.__version__[0:PIL.__version__.index('.')])
+ except (ValueError, IndexError):
+ pil_major_version = 0
+ if pil_major_version < 6:
log.error( _("You don't have the required version of the Python Imaging Library Fork (Pillow) installed."))
log.error( _('Installed Pillow version is: %s') % PIL.__version__ )
log.error( _('Required Pillow version is: 6.0.0 or higher') )