From 1ecb54ad4392473130f6ffdab1ba6e7105031c76 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 Jun 2012 14:27:46 -0700 Subject: portageexit: skip secpass check The portdbapi should handle secpass already internally, and access to secpass here can trigger unnecessary instantiation of a config instance via the portage.data module. --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index bf3fdadaf..ce28c09ea 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -482,7 +482,7 @@ auxdbkeys = ( auxdbkeylen=len(auxdbkeys) def portageexit(): - if data.secpass > 1 and os.environ.get("SANDBOX_ON") != "1": + if os.environ.get("SANDBOX_ON") != "1": close_portdbapi_caches() class _trees_dict(dict): -- cgit v1.2.3-1-g7c22