packages: python-PIL/python-imaging-1.1.6-sane-types.patch (NEW), python-PI...
glen
glen at pld-linux.org
Sun Feb 7 15:45:36 CET 2010
Author: glen Date: Sun Feb 7 14:45:36 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- add sane types and giftrans patches from fc
---- Files affected:
packages/python-PIL:
python-imaging-1.1.6-sane-types.patch (NONE -> 1.1) (NEW), python-imaging-giftrans.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-PIL/python-imaging-1.1.6-sane-types.patch
diff -u /dev/null packages/python-PIL/python-imaging-1.1.6-sane-types.patch:1.1
--- /dev/null Sun Feb 7 15:45:36 2010
+++ packages/python-PIL/python-imaging-1.1.6-sane-types.patch Sun Feb 7 15:45:31 2010
@@ -0,0 +1,13 @@
+--- Imaging-1.1.6/Sane/_sane.c.types 2006-12-03 13:12:22.000000000 +0100
++++ Imaging-1.1.6/Sane/_sane.c 2007-04-28 11:41:19.000000000 +0200
+@@ -1152,8 +1152,8 @@
+ static PyObject *
+ PySane_get_devices(PyObject *self, PyObject *args)
+ {
+- SANE_Device **devlist;
+- SANE_Device *dev;
++ const SANE_Device **devlist;
++ const SANE_Device *dev;
+ SANE_Status st;
+ PyObject *list;
+ int local_only, i;
================================================================
Index: packages/python-PIL/python-imaging-giftrans.patch
diff -u /dev/null packages/python-PIL/python-imaging-giftrans.patch:1.1
--- /dev/null Sun Feb 7 15:45:36 2010
+++ packages/python-PIL/python-imaging-giftrans.patch Sun Feb 7 15:45:31 2010
@@ -0,0 +1,14 @@
+--- Imaging-1.1.6.orig/PIL/GifImagePlugin.py 2006-12-03 11:37:15.000000000 +0000
++++ Imaging-1.1.6/PIL/GifImagePlugin.py 2008-10-02 14:51:43.000000000 +0100
+@@ -352,6 +352,11 @@
+ for i in range(maxcolor):
+ s.append(chr(i) * 3)
+
++ if im.info.has_key('transparency'):
++ transparentIndex = im.info['transparency']
++ s.append('!' + chr(0xf9) + chr(4) + chr(1) + chr(0) + chr(0) +
++ chr(transparentIndex) + chr(0))
++
+ return s
+
+ def getdata(im, offset = (0, 0), **params):
================================================================
More information about the pld-cvs-commit
mailing list