[yum-git] cli.py
Florian Festi
ffesti at linux.duke.edu
Mon Jun 23 15:26:35 UTC 2008
cli.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fa7da837e8da9a43cc4bbb2179339224d336cdbf
Author: Florian Festi <ffesti at redhat.com>
Date: Mon Jun 23 17:23:24 2008 +0200
Fix unicode traceback
If error message contains non UTF-8 characters yum bails out in this line
May be this should (also) be fixed in the rpmlib Python bindings.
diff --git a/cli.py b/cli.py
index 15fae6c..96e92af 100644
--- a/cli.py
+++ b/cli.py
@@ -403,7 +403,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
if len(tserrors) > 0:
errstring = _('Transaction Check Error:\n')
for descr in tserrors:
- errstring += ' %s\n' % descr
+ errstring += ' %s\n' % to_unicode(descr)
raise yum.Errors.YumBaseError, errstring + '\n' + \
self.errorSummary(errstring)
More information about the Yum-cvs-commits
mailing list