[Yum-devel] [PATCH 2/2] if we get diskspace errors from runTransaction but not from the test transaction then emit them quasi-properly.
Seth Vidal
skvidal at fedoraproject.org
Fri Apr 30 19:22:51 UTC 2010
I'd love it if this were all different and less error prone to sort out.
modified patch from https://bugzilla.redhat.com/show_bug.cgi?id=516135
---
yum/__init__.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/yum/__init__.py b/yum/__init__.py
index 0a39365..eb135f4 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1297,7 +1297,12 @@ class YumBase(depsolve.Depsolve):
if self.conf.history_record:
herrors = [to_unicode(to_str(x)) for x in errors]
self.history.end(rpmdbv, 2, errors=herrors)
- raise Errors.YumBaseError, errors
+
+ self.logger.critical(_("Transaction couldn't start:"))
+ for e in errors:
+ self.logger.critical(e[0]) # should this be 'to_unicoded'?
+ raise Errors.YumBaseError, _("Could not run transaction.")
+
if not self.conf.keepcache:
self.cleanUsedHeadersPackages()
--
1.7.0.1
More information about the Yum-devel
mailing list