[yum-git] yum/__init__.py
Seth Vidal
skvidal at linux.duke.edu
Tue Mar 25 03:59:58 UTC 2008
yum/__init__.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
New commits:
commit c15d4525945112f45dff31301dd79dfbe9d9a350
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Mar 24 23:54:33 2008 -0400
raises take strings, not lists - thanks to robin norwood for pointing out the silliness here
diff --git a/yum/__init__.py b/yum/__init__.py
index c1c99f3..3974098 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -758,7 +758,8 @@ class YumBase(depsolve.Depsolve):
errors = self.ts.run(cb.callback, '')
if errors:
- raise Errors.YumBaseError, errors
+ errstring = '\n'.join(errors)
+ raise Errors.YumBaseError, errstring
if not self.conf.keepcache:
self.cleanUsedHeadersPackages()
@@ -2703,13 +2704,14 @@ class YumBase(depsolve.Depsolve):
probs = self.downloadPkgs(dlpkgs)
except IndexError:
- raise Errors.YumBaseError, [_("Unable to find a suitable mirror.")]
+ raise Errors.YumBaseError, _("Unable to find a suitable mirror.")
if len(probs) > 0:
- errstr = [_("Errors were encountered while downloading packages.")]
+ errstr = _("Errors were encountered while downloading packages.")
for key in probs:
errors = misc.unique(probs[key])
for error in errors:
- errstr.append("%s: %s" %(key, error))
+ msg = "%s: %s" % (key, error)
+ errstr += '\n%s' % msg
raise Errors.YumDownloadError, errstr
return dlpkgs
More information about the Yum-cvs-commits
mailing list