Fix a potential TypeError.
authorZac Medico <zmedico@gentoo.org>
Wed, 9 Apr 2008 18:45:33 +0000 (18:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 9 Apr 2008 18:45:33 +0000 (18:45 -0000)
svn path=/main/branches/2.1.2/; revision=9781

pym/portage.py

index f093f54936defa65ada246a101b5963b3ebb1ac6..c9fdbe6fa1d9c863a0b154d567a764f4360028ea 100644 (file)
@@ -529,7 +529,7 @@ def elog_process(cpv, mysettings):
        except OSError:
                pass
        # shortcut for packages without any messages
-       if len(mylogfiles) == 0:
+       if not mylogfiles:
                return
        # exploit listdir() file order so we process log entries in chronological order
        mylogfiles.reverse()