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 a4d89298f58b4894a90f7a70125e57d5a3e9aa60
Author: Seth Vidal <[email protected]>
Date:   Tue Jan 8 15:42:02 2008 -0500

    utf8 files, too :(

diff --git a/createrepo/yumbased.py b/createrepo/yumbased.py
index faf5be3..38d65de 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""" % fn
+            msg += """    <file>%s</file>\n""" % utils.utf8String(fn)
         for fn in dirs:
-            msg += """    <file type="dir">%s</file>\n""" % fn
+            msg += """    <file type="dir">%s</file>\n""" % utils.utf8String(fn)
         for fn in ghosts:
-            msg += """    <file type="ghost">%s</file>\n""" % fn
+            msg += """    <file type="ghost">%s</file>\n""" % utils.utf8String(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.