Don't load a module if there is nothing to process after filtering
authorMarius Mauch <genone@gentoo.org>
Thu, 18 Jan 2007 20:00:38 +0000 (20:00 -0000)
committerMarius Mauch <genone@gentoo.org>
Thu, 18 Jan 2007 20:00:38 +0000 (20:00 -0000)
svn path=/main/trunk/; revision=5709

pym/portage.py

index 3d7a887d77eb0a92375d9f091caac66944231642..4acb1e2018e081339ffdf260bc90aed3bb0c6c2a 100644 (file)
@@ -524,6 +524,8 @@ def elog_process(cpv, mysettings):
                else:
                        mod_logentries = default_logentries
                        mod_fulllog = default_fulllog
+               if len(mod_logentries) == 0:
+                       continue
                # - is nicer than _ for module names, so allow people to use it.
                s = s.replace("-", "_")
                try: