Don't show each character of the log message on a new
authorZac Medico <zmedico@gentoo.org>
Fri, 19 Oct 2007 18:33:45 +0000 (18:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 19 Oct 2007 18:33:45 +0000 (18:33 -0000)
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

pym/portage/elog/mod_echo.py

index 6a12c036495936be1c3d48f8ccd804b76a6018bc..30d88f005067224f973864f68af17a8231bd7747 100644 (file)
@@ -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 = []