Dump mod_echo elog output inside post_emerge(), just before the other notifications...
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Jun 2007 13:43:46 +0000 (13:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Jun 2007 13:43:46 +0000 (13:43 -0000)
svn path=/main/trunk/; revision=6953

pym/emerge/__init__.py

index e62611e8e943f5d6e7007a6577b4ab537ce9592b..6d8da7c2db4ffdceac7e03f48f9078ab7f5b306b 100644 (file)
@@ -3869,6 +3869,14 @@ def post_emerge(trees, mtimedb, retval):
        emergelog("notitles" not in settings.features,
                " *** exiting successfully.")
 
+       # Dump the mod_echo output now so that our other notifications are shown
+       # last.  FIXME: handle finalize for multiple config instances
+       # (PORTAGE_CONFIGROOT support).
+       from portage.elog import mod_echo
+       if mod_echo._items:
+               mod_echo.finalize(settings)
+               mod_echo._items.clear()
+
        if "noinfo" not in settings.features:
                chk_updated_info_files(target_root, infodirs, info_mtimes, retval)