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

James Antill james at osuosl.org
Mon Aug 23 14:16:01 UTC 2010


 yum/__init__.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 45d5d95820576ddde017c3a361ccc99f9303b335
Author: James Antill <james at and.org>
Date:   Sat Aug 21 18:14:47 2010 -0400

    Args. for install/update/etc. can be provides, and thus. unicode, BZ 622683.

diff --git a/yum/__init__.py b/yum/__init__.py
index 1ddecc2..2973846 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -3174,7 +3174,7 @@ class YumBase(depsolve.Depsolve):
                     try:
                         mypkgs = self.returnPackagesByDep(arg)
                     except yum.Errors.YumBaseError, e:
-                        self.logger.critical(_('No Match for argument: %s') % arg)
+                        self.logger.critical(_('No Match for argument: %s') % to_unicode(arg))
                     else:
                         # install MTA* == fail, because provides don't do globs
                         # install /usr/kerberos/bin/* == success (and we want
@@ -3504,7 +3504,7 @@ class YumBase(depsolve.Depsolve):
             availpkgs.extend(m)
 
             if not availpkgs and not instpkgs:
-                self.logger.critical(_('No Match for argument: %s') % arg)
+                self.logger.critical(_('No Match for argument: %s') % to_unicode(arg))
         
         else: # we have kwargs, sort them out.
             nevra_dict = self._nevra_kwarg_parse(kwargs)
@@ -3684,7 +3684,7 @@ class YumBase(depsolve.Depsolve):
                     
                     if not depmatches:
                         arg = to_unicode(arg)
-                        self.logger.critical(_('No Match for argument: %s') % arg)
+                        self.logger.critical(_('No Match for argument: %s') % to_unicode(arg))
                     else:
                         pkgs.extend(depmatches)
                 
@@ -3998,7 +3998,7 @@ class YumBase(depsolve.Depsolve):
                     try:
                         apkgs = self.returnPackagesByDep(arg)
                     except yum.Errors.YumBaseError, e:
-                        self.logger.critical(_('No Match for argument: %s') % arg)
+                        self.logger.critical(_('No Match for argument: %s') % to_unicode(arg))
 
         else:
             nevra_dict = self._nevra_kwarg_parse(kwargs)


More information about the Yum-commits mailing list