[Yum-devel] [PATCH] indent issue with update_md.py

Dennis Gregorovic dgregor at redhat.com
Thu May 17 17:48:30 UTC 2012


There's an indent issue that manifests itself with spurious '</pkglist>'
lines when calling xml() on a notice that has multiple package
collections.

$ git diff
diff --git a/yum/update_md.py b/yum/update_md.py
index 2cb1acb..dee7b98 100644
--- a/yum/update_md.py
+++ b/yum/update_md.py
@@ -345,7 +345,7 @@ class UpdateNotice(object):
                                 to_xml(pkg['version'], attrib=True),
                                 to_xml(pkg['filename']))
                 msg += """    </collection>\n"""
-                msg += """  </pkglist>\n"""
+            msg += """  </pkglist>\n"""
         msg += """</update>\n"""
         return msg



More information about the Yum-devel mailing list