[yum-git] yum/comps.py

James Antill james at linux.duke.edu
Tue May 13 13:35:28 UTC 2008


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

New commits:
commit 4d786c6d615ff74f47612940861464c8860998f9
Author: James Antill <james at and.org>
Date:   Tue May 13 09:34:38 2008 -0400

     Fix comps XML production to match expected input, bug#446186
     Patch by: morioka at at.wakwak.com

diff --git a/yum/comps.py b/yum/comps.py
index 146d817..1f266f4 100755
--- a/yum/comps.py
+++ b/yum/comps.py
@@ -224,7 +224,7 @@ class Group(object):
                                   str(self.user_visible), self.display_order)
    
         if self.langonly:
-            msg += """   <lang_only>%s</lang_only>""" % self.langonly
+            msg += """   <langonly>%s</langonly>""" % self.langonly
             
         msg +="""   <name>%s</name>\n""" % self.name
         for (lang, val) in self.translated_name.items():
@@ -242,7 +242,7 @@ class Group(object):
         for pkg in self.optional_packages.keys():
             msg += """      <packagereq type="optional">%s</packagereq>\n""" % pkg
         for (pkg, req) in self.conditional_packages.items():
-            msg += """      <packagereq type="conditional" requires="%s">%s</packagereq>\n""" % (pkg, req)
+            msg += """      <packagereq type="conditional" requires="%s">%s</packagereq>\n""" % (req, pkg)
         msg += """    </packagelist>\n"""
         msg += """  </group>"""
 



More information about the Yum-cvs-commits mailing list