createrepo/yumbased.py

[email protected] (Seth Vidal)
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 createrepo/yumbased.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6dee95fb521b30d9aa5aa8160b11b96ab41b54b3
Author: Seth Vidal <[email protected]>
Date:   Thu Jan 10 08:53:52 2008 -0500

    make sure that files are run through the xml escaping, too.

diff --git a/createrepo/yumbased.py b/createrepo/yumbased.py
index db6226f..44352be 100644
--- a/createrepo/yumbased.py
+++ b/createrepo/yumbased.py
@@ -227,11 +227,11 @@ class CreateRepoPackage(YumLocalPackage):
             dirs = self._return_primary_dirs()
                 
         for fn in files:
-            msg += """    <file>%s</file>\n""" % utils.utf8String(fn)
+            msg += """    <file>%s</file>\n""" % self._xml(fn)
         for fn in dirs:
-            msg += """    <file type="dir">%s</file>\n""" % utils.utf8String(fn)
+            msg += """    <file type="dir">%s</file>\n""" % self._xml(fn)
         for fn in ghosts:
-            msg += """    <file type="ghost">%s</file>\n""" % utils.utf8String(fn)
+            msg += """    <file type="ghost">%s</file>\n""" % self._xml(fn)
         
         return msg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.