aboutsummaryrefslogtreecommitdiff
blob: 9ac65b8ae6d9802c73758a5396582451c2b47ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

from portage.elog import mod_echo

def _flush_elog_mod_echo():
	"""
	Dump the mod_echo output now so that our other
	notifications are shown last.
	@rtype: bool
	@return: True if messages were shown, False otherwise.
	"""
	messages_shown = bool(mod_echo._items)
	mod_echo.finalize()
	return messages_shown