summaryrefslogtreecommitdiffstats
path: root/pym/portage/elog/__init__.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-22 23:11:38 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-22 23:11:38 +0000
commita382630c4c4414597190da450970f4885a632b62 (patch)
tree13ff560b1a9ec85d49b940668bf5bdd5b1aaf403 /pym/portage/elog/__init__.py
parentf2beaa1b01fbfc9ad8eea94df22ca92947446d01 (diff)
downloadportage-a382630c4c4414597190da450970f4885a632b62.tar.gz
portage-a382630c4c4414597190da450970f4885a632b62.tar.bz2
portage-a382630c4c4414597190da450970f4885a632b62.zip
Make elog finalize() handling safe for PORTAGE_CONFIGROOT.
svn path=/main/trunk/; revision=6955
Diffstat (limited to 'pym/portage/elog/__init__.py')
-rw-r--r--pym/portage/elog/__init__.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/pym/portage/elog/__init__.py b/pym/portage/elog/__init__.py
index 1cf4dd8b8..cbe9f47fa 100644
--- a/pym/portage/elog/__init__.py
+++ b/pym/portage/elog/__init__.py
@@ -95,14 +95,9 @@ def elog_process(cpv, mysettings):
m.process(mysettings, str(key), mod_logentries, mod_fulllog)
finally:
signal.alarm(0)
- # FIXME: when installing to more than one $ROOT, the finalizer
- # will only be registered with a config instance from one of
- # the roots (randomly). With PORTAGE_CONFIGROOT, the config
- # instances can have completely different settings, so
- # logs can end up in the wrong PORT_LOGDIR for example.
if hasattr(m, "finalize") and not m.finalize in _elog_atexit_handlers:
_elog_atexit_handlers.append(m.finalize)
- atexit_register(m.finalize, mysettings)
+ atexit_register(m.finalize)
except (ImportError, AttributeError), e:
writemsg("!!! Error while importing logging modules " + \
"while loading \"mod_%s\":\n" % str(s))