[yum-commits] yum/repoMDObject.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Wed Aug 15 12:34:48 UTC 2012
yum/repoMDObject.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 9a577352d3d074047b04fa63717323be5b8ac32f
Author: ZdenÄk Pavlas <zpavlas at redhat.com>
Date: Wed Aug 15 14:26:18 2012 +0200
RepoMD.dump_xml: Do not truncate tag strings. BZ 848065
diff --git a/yum/repoMDObject.py b/yum/repoMDObject.py
index 31b1080..eb84123 100755
--- a/yum/repoMDObject.py
+++ b/yum/repoMDObject.py
@@ -226,12 +226,11 @@ class RepoMD:
tag = """ <repo>%s</repo>\n""" % (to_xml(item))
tags += tag
for (cpeid, item) in self.tags['distro']:
- itemlist = list(item) # frellingsets.
if cpeid:
tag = """ <distro cpeid="%s">%s</distro>\n""" % (
- to_xml(cpeid, attrib=True), to_xml(itemlist[0]))
+ to_xml(cpeid, attrib=True), to_xml(item))
else:
- tag = """ <distro>%s</distro>\n""" % (to_xml(itemlist[0]))
+ tag = """ <distro>%s</distro>\n""" % (to_xml(item))
tags += tag
tags += """ </tags>\n"""
msg += tags
More information about the Yum-commits
mailing list