[yum-git] Branch 'yum-3_2_X' - yum/__init__.py

James Antill james at linux.duke.edu
Wed Aug 6 17:24:33 UTC 2008


 yum/__init__.py |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit b94b2049164a45d8a6f68b5fc155d789a757eb20
Author: James Antill <james at and.org>
Date:   Wed Aug 6 13:17:44 2008 -0400

    Work well with unicode in repo names, repolist etc.

diff --git a/yum/__init__.py b/yum/__init__.py
index 9203c0a..e9869f0 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -305,6 +305,7 @@ class YumBase(depsolve.Depsolve):
             repo.name = section
             self.logger.error(_('Repository %r is missing name in configuration, '
                     'using id') % section)
+        repo.name = to_unicode(repo.name)
 
         # Set attributes not from the config file
         repo.basecachedir = self.conf.cachedir



More information about the Yum-cvs-commits mailing list