From 6c2fccbfb0c4918e7fb1a494ded41b4beb511f91 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 5 Oct 2007 02:05:15 +0000 Subject: 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 --- bin/emerge | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin') 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. -- cgit v1.2.3-1-g7c22