rpms/python-kid/F-11 python-kid-0.9.6-escape-gt.patch, NONE, 1.1 python-kid.spec, 1.24, 1.25
Till Maas
till at fedoraproject.org
Sun Jan 10 14:09:40 UTC 2010
Author: till
Update of /cvs/pkgs/rpms/python-kid/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16883
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 ]]> in serialization.py to create valid XML
- https://bugzilla.redhat.com/show_bug.cgi?id=528729
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("&", "&")
text = text.replace("<", "<")
+ text = text.replace("]]>", "]]>")
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("&", "&")
text = text.replace("<", "<")
+ text = text.replace("]]>", "]]>")
text = text.replace("\"", """)
except (TypeError, AttributeError):
raise_serialization_error(text)
@@ -684,6 +686,7 @@ class HTMLSerializer(HTMLBased, Serializ
if escape:
text = text.replace("&", "&")
text = text.replace("<", "<")
+ text = text.replace("]]>", "]]>")
except (TypeError, AttributeError):
raise_serialization_error(text)
return text
Index: python-kid.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-kid/F-11/python-kid.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -p -r1.24 -r1.25
--- python-kid.spec 26 Feb 2009 21:59:21 -0000 1.24
+++ python-kid.spec 10 Jan 2010 14:07:44 -0000 1.25
@@ -2,13 +2,18 @@
Name: python-kid
Version: 0.9.6
-Release: 4%{?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 ]]> 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,13 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sun Jan 10 2010 Till Maas <opensource at till.name> - 0.9.6-6
+- Escape ]]> as ]]> in serialization.py to create valid XML
+- https://bugzilla.redhat.com/show_bug.cgi?id=528729
+
+* 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
More information about the scm-commits
mailing list