print_changelog: if no changelogs, no newline
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Oct 2011 20:09:52 +0000 (13:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Oct 2011 20:09:52 +0000 (13:09 -0700)
This will fix bug #385413.

pym/_emerge/resolver/output.py

index 05e316a660c70ce6c9ee4febf5bb1471d3c00969..f74d13a7fd74410bd485857ed461f5f06df15868 100644 (file)
@@ -574,6 +574,8 @@ class Display(object):
        def print_changelog(self):
                """Prints the changelog text to std_out
                """
+               if not self.changelogs:
+                       return
                writemsg_stdout('\n', noiselevel=-1)
                for revision, text in self.changelogs:
                        writemsg_stdout(bold('*'+revision) + '\n' + text,