Phatch should not provide patches for PIL 1.1.7

Bug #382977 reported by Stani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Critical
Stani

Bug Description

Phatch now provide patched modules for PIL for jpeg and tiff. Phatch should only add these modules to sys.path if the PIL version is lower than 1.1.7

Stani (stani)
Changed in phatch:
assignee: nobody → stani (stani)
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Stani (stani) wrote :

$ bzr diff
=== modified file 'phatch/core/config.py'
--- phatch/core/config.py 2009-06-03 02:51:15 +0000
+++ phatch/core/config.py 2009-06-03 10:58:59 +0000
@@ -132,8 +132,12 @@
     #only when the gui is involved
     pyWxLib = os.path.join(phatch_path,'pyWx','lib')
     if os.path.isdir(pyWxLib): fix_python_path(pyWxLib)
- #other people module (patches for pil)
+ #other people module
     fix_python_path(os.path.join(phatch_path,'other'))
+ #patches for pil < 1.1.6
+ import Image
+ if Image.VERSION < '1.1.6':
+ fix_python_path(os.path.join(phatch_path,'other','pil-1.1.6'))
     #user actions
     fix_python_path(USER_ACTIONS_PATH)
     #load locale

=== added directory 'phatch/other/pil-1.1.6'
=== renamed file 'phatch/other/JpegImagePlugin.py' => 'phatch/other/pil-1.1.6/JpegImagePlugin.py'
=== renamed file 'phatch/other/TiffImagePlugin.py' => 'phatch/other/pil-1.1.6/TiffImagePlugin.py'

$ bzr commit -m "no patches for pil 1.1.7"
Committing to: /home/stani/sync/python/phatch/trunk/
modified phatch/core/config.py
added phatch/other/pil-1.1.6
renamed phatch/other/JpegImagePlugin.py => phatch/other/pil-1.1.6/JpegImagePlugin.py
renamed phatch/other/TiffImagePlugin.py => phatch/other/pil-1.1.6/TiffImagePlugin.py
Committed revision 627.

Changed in phatch:
status: Confirmed → Fix Committed
Stani (stani)
Changed in phatch:
milestone: none → 0.2.1
Stani (stani)
Changed in phatch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.