[Frugalware-git] frugalware-current: pyxml-0.8.4-6-i686

Melko melko at frugalware.org
Sun Apr 1 21:39:32 CEST 2012


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=403c6ac9f3f001eb3762fcd8e2f73855ddcf900b

commit 403c6ac9f3f001eb3762fcd8e2f73855ddcf900b
Author: Melko <melko at frugalware.org>
Date:   Sun Apr 1 21:36:41 2012 +0200

pyxml-0.8.4-6-i686

* add patch to work correctly with foreign characters

diff --git a/source/devel-extra/pyxml/FrugalBuild b/source/devel-extra/pyxml/FrugalBuild
index 4149e9f..3e9edd3 100644
--- a/source/devel-extra/pyxml/FrugalBuild
+++ b/source/devel-extra/pyxml/FrugalBuild
@@ -3,16 +3,17 @@

pkgname=pyxml
pkgver=0.8.4
-pkgrel=5
+pkgrel=6
pkgdesc="XML Parsers and API for Python"
depends=('python' 'expat')
groups=('devel-extra')
archs=('i686' 'x86_64')
_F_sourceforge_name="PyXML"
Finclude sourceforge
-source=($source python26.diff)
+source=($source python26.diff foreigncharsfix.patch)
_F_cd_path="PyXML-$pkgver"
sha1sums=('6f30d5907b75ef76809c19e0103d78f4a5fb027c' \
-          '716a8c1482e99d35f859a33d243651dad62c4fc4')
+          '716a8c1482e99d35f859a33d243651dad62c4fc4' \
+          'd8edf6e3d9aa3650705f170a44e7baff67081ef3')

# optimization OK
diff --git a/source/devel-extra/pyxml/foreigncharsfix.patch b/source/devel-extra/pyxml/foreigncharsfix.patch
new file mode 100644
index 0000000..024d447
--- /dev/null
+++ b/source/devel-extra/pyxml/foreigncharsfix.patch
@@ -0,0 +1,11 @@
+diff -aur PyXML-0.8.4.orig//xml/parsers/xmlproc/xmlutils.py PyXML-0.8.4/xml/parsers/xmlproc/xmlutils.py
+--- PyXML-0.8.4.orig//xml/parsers/xmlproc/xmlutils.py	2010-11-06 17:27:53.936666669 +0800
++++ PyXML-0.8.4/xml/parsers/xmlproc/xmlutils.py	2010-11-06 17:30:39.230000003 +0800
+@@ -720,6 +720,7 @@
+             # to the recoding.
+             try:
+                 self.data = self.charset_converter(self.data)
++		self.datasize = len(self.data)
+             except UnicodeError, e:
+                 self._handle_decoding_error(self.data, e)
+             self.input_encoding = enc1


More information about the Frugalware-git mailing list