[yum-commits] Branch 'yum-3_2_X' - yum/packages.py

skvidal at osuosl.org skvidal at osuosl.org
Tue Aug 18 15:18:26 UTC 2009


 yum/packages.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 920ac2973a64cb58ff06bd4cd4b3951ab01ba839
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Aug 18 11:16:10 2009 -0400

    to_xml() attrib the flags, too - from mikeb at redhat.com

diff --git a/yum/packages.py b/yum/packages.py
index 86f8c91..99ff538 100644
--- a/yum/packages.py
+++ b/yum/packages.py
@@ -907,7 +907,7 @@ class YumAvailablePackage(PackageObject, RpmBase):
         for (name, flags, (e,v,r)) in mylist:
             pcostring = '''      <rpm:entry name="%s"''' % misc.to_xml(name, attrib=True)
             if flags:
-                pcostring += ''' flags="%s"''' % flags
+                pcostring += ''' flags="%s"''' % misc.to_xml(flags, attrib=True)
                 if e:
                     pcostring += ''' epoch="%s"''' % misc.to_xml(e, attrib=True)
                 if v:
@@ -978,7 +978,7 @@ class YumAvailablePackage(PackageObject, RpmBase):
                 continue
             prcostring = '''      <rpm:entry name="%s"''' % misc.to_xml(name, attrib=True)
             if flags:
-                prcostring += ''' flags="%s"''' % flags
+                prcostring += ''' flags="%s"''' % misc.to_xml(flags, attrib=True)
                 if e:
                     prcostring += ''' epoch="%s"''' % misc.to_xml(e, attrib=True)
                 if v:


More information about the Yum-commits mailing list