summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-01-18 20:00:38 +0000
committerMarius Mauch <genone@gentoo.org>2007-01-18 20:00:38 +0000
commit6f483174ffc40f6a2a7243fd1bf3123386829e8a (patch)
tree0a53bdbbe0ed9452ce041c88ea7c631f3d289684
parente692c373f1c1b75c71305843dbb1d904d8eb8dba (diff)
downloadportage-6f483174ffc40f6a2a7243fd1bf3123386829e8a.tar.gz
portage-6f483174ffc40f6a2a7243fd1bf3123386829e8a.tar.bz2
portage-6f483174ffc40f6a2a7243fd1bf3123386829e8a.zip
Don't load a module if there is nothing to process after filtering
svn path=/main/trunk/; revision=5709
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 3d7a887d7..4acb1e201 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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: