Fix a little issue in the code from bug #197905 that causes some elog
authorZac Medico <zmedico@gentoo.org>
Tue, 8 Apr 2008 04:43:37 +0000 (04:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 Apr 2008 04:43:37 +0000 (04:43 -0000)
messages to get lost.

svn path=/main/trunk/; revision=9747

pym/portage/elog/messages.py

index ed5c8c9dde96b7dbd28ac8408076cce256c85c85..bca63554ef9d328e9e3eed269a5c39ab9d58feab 100644 (file)
@@ -44,6 +44,8 @@ def collect_ebuild_messages(path):
                                        logentries[msgfunction].append((lastmsgtype, msgcontent))
                                msgcontent = [msg]
                        lastmsgtype = msgtype
+               if msgcontent:
+                       logentries[msgfunction].append((lastmsgtype, msgcontent))
 
        # clean logfiles to avoid repetitions
        for f in mylogfiles: