portageexit: skip SANDBOX_ON check
authorZac Medico <zmedico@gentoo.org>
Fri, 1 Jun 2012 21:43:41 +0000 (14:43 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 1 Jun 2012 21:43:41 +0000 (14:43 -0700)
This check is redundant, since the portdbapi constructor already has
special SANDBOX_ON / SANDBOX_WRITE handling.

pym/portage/__init__.py

index ce28c09ea4a5c3aa5ac313e0d01abad09fe682a7..56af9e48f234d4afc1aa240058defeba177f72d9 100644 (file)
@@ -482,8 +482,7 @@ auxdbkeys = (
 auxdbkeylen=len(auxdbkeys)
 
 def portageexit():
-       if os.environ.get("SANDBOX_ON") != "1":
-               close_portdbapi_caches()
+       close_portdbapi_caches()
 
 class _trees_dict(dict):
        __slots__ = ('_running_eroot', '_target_eroot',)