summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-01 19:44:39 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-01 19:44:39 +0000
commita2ab781647a252bb2aac5e9323ca95c2a0e2edb1 (patch)
tree95e084ced6f45336ae669f75801170719f2d9612
parentff40a09812839da695eba0c993a77a8856b902c8 (diff)
downloadportage-a2ab781647a252bb2aac5e9323ca95c2a0e2edb1.tar.gz
portage-a2ab781647a252bb2aac5e9323ca95c2a0e2edb1.tar.bz2
portage-a2ab781647a252bb2aac5e9323ca95c2a0e2edb1.zip
Bug #194398 - Do not log "exiting successfully" in emerge.log
unless the status really is successful. Otherwise, log "exiting unsuccessfully". Thanks to David Watzke. svn path=/main/trunk/; revision=7900
-rw-r--r--pym/emerge/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index e396e8ad0..7c00cdf74 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -4491,8 +4491,11 @@ def post_emerge(trees, mtimedb, retval):
os.chdir("/")
- emergelog("notitles" not in settings.features,
- " *** exiting successfully.")
+ if retval == os.EX_OK:
+ exit_msg = " *** exiting successfully."
+ else:
+ exit_msg = " *** exiting unsuccessfully with status '%s'." % retval
+ emergelog("notitles" not in settings.features, exit_msg)
# Dump the mod_echo output now so that our other notifications are shown
# last.