summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-19 19:18:24 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-19 19:18:24 +0000
commit60d2fa528eac86e73b5f30421c145cbaa3b5eb33 (patch)
treeb3bf2958e1c4b5b15b11c78519d6bf610b32c38c
parent157c39e7dffd3abc4780b267a9eb494d73be99a6 (diff)
downloadportage-60d2fa528eac86e73b5f30421c145cbaa3b5eb33.tar.gz
portage-60d2fa528eac86e73b5f30421c145cbaa3b5eb33.tar.bz2
portage-60d2fa528eac86e73b5f30421c145cbaa3b5eb33.zip
Prevent _combine_logentries() from generating redundant
consecutive 'TYPE: phase' lines that show in summary.log when the python-based elog functions are used. svn path=/main/trunk/; revision=8182
-rw-r--r--pym/portage/elog/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/elog/__init__.py b/pym/portage/elog/__init__.py
index 9e309f75f..4049b5521 100644
--- a/pym/portage/elog/__init__.py
+++ b/pym/portage/elog/__init__.py
@@ -33,8 +33,11 @@ def _combine_logentries(logentries):
for phase in EBUILD_PHASES:
if not phase in logentries:
continue
+ previous_type = None
for msgtype, msgcontent in logentries[phase]:
- rValue += "%s: %s\n" % (msgtype, phase)
+ if previous_type != msgtype:
+ previous_type = msgtype
+ rValue += "%s: %s\n" % (msgtype, phase)
for line in msgcontent:
rValue += line
rValue += "\n"