summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2006-12-19 14:56:17 +0000
committerMarius Mauch <genone@gentoo.org>2006-12-19 14:56:17 +0000
commit72fecf93d17c0cd0f8790edfbe52cd90e2f4c427 (patch)
tree9763fd5e8c48e80d1c5f1e652aad7f0742c41a87 /pym/portage.py
parent3a08a783d9f3e7b55a4847db1b4df6cad95f4f20 (diff)
downloadportage-72fecf93d17c0cd0f8790edfbe52cd90e2f4c427.tar.gz
portage-72fecf93d17c0cd0f8790edfbe52cd90e2f4c427.tar.bz2
portage-72fecf93d17c0cd0f8790edfbe52cd90e2f4c427.zip
New elog modules for dismerging messages into a single file/mail
svn path=/main/trunk/; revision=5325
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 984be5273..af6607722 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -467,7 +467,7 @@ class digraph:
print "(%s)" % self.nodes[node][0][child]
-
+_elog_atexit_handlers = []
def elog_process(cpv, mysettings):
mylogfiles = listdir(mysettings["T"]+"/logging/")
# shortcut for packages without any messages
@@ -513,6 +513,9 @@ def elog_process(cpv, mysettings):
logmodule = __import__("elog_modules.mod_"+s)
m = getattr(logmodule, "mod_"+s)
m.process(mysettings, cpv, mylogentries, fulllog)
+ if hasattr(m, "finalize") and not m.finalize in _elog_atexit_handlers:
+ _elog_atexit_handlers.append(m.finalize)
+ atexit_register(m.finalize, mysettings)
except (ImportError, AttributeError), e:
print "!!! Error while importing logging modules while loading \"mod_%s\":" % s
print e