[Yum-devel] [PATCH] Do not truncate tag strings. BZ 848065

Zdeněk Pavlas zpavlas at redhat.com
Wed Aug 15 12:27:05 UTC 2012


---
 yum/repoMDObject.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

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
-- 
1.7.4.4



More information about the Yum-devel mailing list