[Yum-devel] [PATCH 3/3] Output the yum_save file on assumeno and gpg sig. fails.
James Antill
james at and.org
Tue Jul 19 19:53:48 UTC 2011
---
yummain.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/yummain.py b/yummain.py
index e17f1e3..d6abd70 100755
--- a/yummain.py
+++ b/yummain.py
@@ -238,9 +238,15 @@ def main(args):
rpmdb_warn_checks()
return_code = result
if base._ts_save_file:
- verbose_logger.info(_("Your transaction was saved, rerun it with: yum load-transaction %s") % base._ts_save_file)
+ verbose_logger.info(_("Your transaction was saved, rerun it with:\n yum load-transaction %s") % base._ts_save_file)
elif return_code < 0:
return_code = 1 # Means the pre-transaction checks failed...
+ # This includes:
+ # . No packages.
+ # . Hitting N at the prompt.
+ # . GPG check failures.
+ if base._ts_save_file:
+ verbose_logger.info(_("Your transaction was saved, rerun it with:\n yum load-transaction %s") % base._ts_save_file)
else:
verbose_logger.log(logginglevels.INFO_2, _('Complete!'))
--
1.7.5.4
More information about the Yum-devel
mailing list