rpms/python-kid/EL-5 python-kid-0.9.6-escape-gt.patch, NONE, 1.1 python-kid.spec, 1.17, 1.18

Till Maas till at fedoraproject.org
Sun Jan 10 14:26:34 UTC 2010


Author: till

Update of /cvs/pkgs/rpms/python-kid/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20143

Modified Files:
	python-kid.spec 
Added Files:
	python-kid-0.9.6-escape-gt.patch 
Log Message:
* Sun Jan 10 2010 Till Maas <opensource at till.name> - 0.9.6-6
- Escape ]]> as ]]&gt; in serialization.py to create valid XML
- https://bugzilla.redhat.com/show_bug.cgi?id=528729
- Adjust BR for EPEL


python-kid-0.9.6-escape-gt.patch:
 serialization.py |    3 +++
 1 file changed, 3 insertions(+)

--- NEW FILE python-kid-0.9.6-escape-gt.patch ---
diff -up kid-0.9.6/kid/serialization.py.escape-gt kid-0.9.6/kid/serialization.py
--- kid-0.9.6/kid/serialization.py.escape-gt	2007-07-16 13:02:53.000000000 +0200
+++ kid-0.9.6/kid/serialization.py	2010-01-10 14:42:09.000000000 +0100
@@ -408,6 +408,7 @@ class XMLSerializer(Serializer):
                     return encode_entity(text, entities=entity_map)
             text = text.replace("&", "&amp;")
             text = text.replace("<", "&lt;")
+            text = text.replace("]]>", "]]&gt;")
         except (TypeError, AttributeError):
             raise_serialization_error(text)
         return text
@@ -423,6 +424,7 @@ class XMLSerializer(Serializer):
                     return encode_entity(text, entities=entity_map)
             text = text.replace("&", "&amp;")
             text = text.replace("<", "&lt;")
+            text = text.replace("]]>", "]]&gt;")
             text = text.replace("\"", "&quot;")
         except (TypeError, AttributeError):
             raise_serialization_error(text)
@@ -684,6 +686,7 @@ class HTMLSerializer(HTMLBased, Serializ
             if escape:
                 text = text.replace("&", "&amp;")
                 text = text.replace("<", "&lt;")
+                text = text.replace("]]>", "]]&gt;")
         except (TypeError, AttributeError):
             raise_serialization_error(text)
         return text


Index: python-kid.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-kid/EL-5/python-kid.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -r1.17 -r1.18
--- python-kid.spec	17 Aug 2007 18:33:37 -0000	1.17
+++ python-kid.spec	10 Jan 2010 14:24:37 -0000	1.18
@@ -2,13 +2,18 @@
 
 Name:           python-kid
 Version:        0.9.6
-Release:        1%{?dist}
+Release:        6%{?dist}
 Summary:        Kid - A simple and pythonic XML template language
 
 Group:          Applications/Publishing
 License:        MIT
 URL:            http://www.kid-templating.org/
 Source0:        http://www.kid-templating.org/dist/%{version}/kid-%{version}.tar.gz
+# 2010-01-10: Upstream is currently unresponsive, but patch qualifies for upstreaming
+# Escape ]]> to ]]&gt; in serialization.py as required by XML standard:
+# http://www.w3.org/TR/2006/REC-xml11-20060816/#syntax
+# Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=528729
+Patch0:         python-kid-0.9.6-escape-gt.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
@@ -24,6 +29,7 @@ byte-code and may be imported and used l
 
 %prep
 %setup -q -n kid-%{version}
+%patch0 -p1 -b .escape-gt
 
 
 %build
@@ -59,6 +65,24 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Jan 10 2010 Till Maas <opensource at till.name> - 0.9.6-6
+- Escape ]]> as ]]&gt; in serialization.py to create valid XML
+- https://bugzilla.redhat.com/show_bug.cgi?id=528729
+- Adjust BR for EPEL
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.6-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.6-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.9.6-3
+- Rebuild for Python 2.6
+
+* Tue Aug 28 2007 Konstantin Ryabitsev <icon at fedoraproject.org> - 0.9.6-2
+- BR: python-setuptools-devel
+- Drop explicit BR: python-devel
+
 * Fri Aug 17 2007 Konstantin Ryabitsev <icon at fedoraproject.org> - 0.9.6-1
 - Upstream 0.9.6
 



More information about the scm-commits mailing list