diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-03 22:39:15 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-03 22:39:15 -0700 |
commit | ce3f72b79f21e96003e075cb2f08faf8787df7da (patch) | |
tree | bcd9ddf02f3e7e7f99243d5b36ca64726b644425 /pym/portage/__init__.py | |
parent | Use a lazy import for portage.dep instide portage.util. (diff) | |
download | portage-ce3f72b79f21e96003e075cb2f08faf8787df7da.tar.gz portage-ce3f72b79f21e96003e075cb2f08faf8787df7da.tar.bz2 portage-ce3f72b79f21e96003e075cb2f08faf8787df7da.zip |
Move registration of the close_portdbapi_caches() exit hook from the
portage base module to the portree module, so that the base portage
module can be imported without triggering import of the portage.process
(for atexit_register) and portage.dbapi.porttree modules. Also, don't
bother to commit the mtimedb in the exit hook since it's not really
needed.
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r-- | pym/portage/__init__.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index d16ca3a15..cd1ad6875 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -491,14 +491,6 @@ auxdbkeylen=len(auxdbkeys) def portageexit(): if data.secpass > 1 and os.environ.get("SANDBOX_ON") != "1": close_portdbapi_caches() - try: - mtimedb - except NameError: - pass - else: - mtimedb.commit() - -atexit_register(portageexit) def create_trees(config_root=None, target_root=None, trees=None): if trees is None: |