summaryrefslogtreecommitdiffstats
path: root/pym/portage/elog
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-19 18:33:45 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-19 18:33:45 +0000
commitd44a45df68f69c8c25c3a82ac1f7d81b6104048b (patch)
tree3b4418f51543b3e7e7fbc198ab1f1743b67717af /pym/portage/elog
parent1c3991ba5f6ae9387dcd8c57798d2ab7e39a98e2 (diff)
downloadportage-d44a45df68f69c8c25c3a82ac1f7d81b6104048b.tar.gz
portage-d44a45df68f69c8c25c3a82ac1f7d81b6104048b.tar.bz2
portage-d44a45df68f69c8c25c3a82ac1f7d81b6104048b.zip
Don't show each character of the log message on a new
line when displaying messages that came from one of the python-based elog functions. This might not be the correct solution but it seems to work for now. svn path=/main/trunk/; revision=8180
Diffstat (limited to 'pym/portage/elog')
-rw-r--r--pym/portage/elog/mod_echo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/elog/mod_echo.py b/pym/portage/elog/mod_echo.py
index 6a12c0364..30d88f005 100644
--- a/pym/portage/elog/mod_echo.py
+++ b/pym/portage/elog/mod_echo.py
@@ -34,6 +34,8 @@ def finalize(mysettings=None):
"ERROR": printer.eerror,
"LOG": printer.einfo,
"QA": printer.ewarn}
+ if isinstance(msgcontent, basestring):
+ msgcontent = [msgcontent]
for line in msgcontent:
fmap[msgtype](line.strip("\n"))
_items = []