Fix two UnicodeDecodeErrors which were raised when running 'yum -v repolist' in fi_FI.utf8 with the yet uncommitted Finnish translation. --- yumcommands.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/yumcommands.py b/yumcommands.py index c0504a6..d13f84a 100644 --- a/yumcommands.py +++ b/yumcommands.py @@ -23,6 +23,7 @@ import os import cli from yum import logginglevels from yum import _ +from yum import misc import yum.Errors import operator import locale @@ -890,7 +891,7 @@ class RepoListCommand(YumCommand): num = _("Instant (last: %s)") % last else: num = locale.format("%d", repo.metadata_expire, True) - num = _("%s second(s) (last: %s)") % (num, last) + num = _("%s second(s) (last: %s)") % (misc.to_unicode(num), last) out += [base.fmtKeyValFill(_("Repo-expire : "), num)] @@ -904,7 +905,7 @@ class RepoListCommand(YumCommand): base.verbose_logger.log(logginglevels.DEBUG_3, "%s\n", - "\n".join(out)) + "\n".join(map(misc.to_unicode, out))) if not verbose and cols: # Work out the first (id) and last (enabled/disalbed/count), -- 1.6.5.2 _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel