summaryrefslogtreecommitdiffstats
path: root/bin/emerge
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-05 02:05:15 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-05 02:05:15 +0000
commit6c2fccbfb0c4918e7fb1a494ded41b4beb511f91 (patch)
tree9be680cf101964107c10e43357951640833c0b14 /bin/emerge
parentf659df8f7feedf5d597fdb80b9a0000ee5691057 (diff)
downloadportage-6c2fccbfb0c4918e7fb1a494ded41b4beb511f91.tar.gz
portage-6c2fccbfb0c4918e7fb1a494ded41b4beb511f91.tar.bz2
portage-6c2fccbfb0c4918e7fb1a494ded41b4beb511f91.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. (trunk r7900) svn path=/main/branches/2.1.2/; revision=7927
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge
index cba9ef5e5..4909a5f25 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -4486,8 +4486,11 @@ def post_emerge(settings, 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.