From: Zac Medico Date: Fri, 5 Oct 2007 02:05:15 +0000 (-0000) Subject: Bug #194398 - Do not log "exiting successfully" in emerge.log X-Git-Tag: v2.1.3.16~82 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c2fccbfb0c4918e7fb1a494ded41b4beb511f91;p=portage.git 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 --- 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.