[yum-commits] Branch 'yum-3_2_X' - shell.py
skvidal at osuosl.org
skvidal at osuosl.org
Fri Nov 7 16:25:17 UTC 2008
shell.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit b8662f1bdc87863095d25505461e57961f23bd21
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Nov 7 11:24:24 2008 -0500
minor modification to make the error message be more accurate
diff --git a/shell.py b/shell.py
index 4c490e8..145e344 100644
--- a/shell.py
+++ b/shell.py
@@ -337,11 +337,13 @@ class YumShell(cmd.Cmd):
if e.errno == 32:
self.logger.critical('\n\nExiting on Broken Pipe')
else:
- if returnval != 0:
- self.verbose_logger.info('Transaction did not run.')
+ if returnval not in [0,1]:
+ self.verbose_logger.info('Transaction encountered a serious error.')
else:
+ if returnval == 1:
+ self.verbose_logger.info('There were non-fatal errors in the transaction')
self.verbose_logger.log(logginglevels.INFO_2,
'Finished Transaction')
- self.base.closeRpmDB()
+ self.base.closeRpmDB()
More information about the Yum-commits
mailing list