summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-06 02:46:13 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-06 02:46:13 +0000
commit8e0efd760c12858138fbdef29e06eaa2c472b36d (patch)
tree990130ffe306681b6616f64cec326eb4b92654bb
parent726e4b3d1b313e8d5aee7b612a288bdc58cc79ea (diff)
downloadportage-8e0efd760c12858138fbdef29e06eaa2c472b36d.tar.gz
portage-8e0efd760c12858138fbdef29e06eaa2c472b36d.tar.bz2
portage-8e0efd760c12858138fbdef29e06eaa2c472b36d.zip
Remove global autouse cache since most people don't use it anyway and it's broken in the case where $ROOT != /.
svn path=/main/trunk/; revision=3797
-rw-r--r--pym/portage.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/pym/portage.py b/pym/portage.py
index dd2b17971..e368ef315 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -809,18 +809,12 @@ def ExtractKernelVersion(base_dir):
return (version,None)
-
-autouse_val = None
def autouse(myvartree, use_cache=1, mysettings=None):
"returns set of USE variables auto-enabled due to packages being installed"
- global autouse_val
if mysettings is None:
global settings
mysettings = settings
- if autouse_val is not None:
- return autouse_val
if mysettings.profile_path is None:
- autouse_val = ""
return ""
myusevars=""
usedefaults = mysettings.use_defs
@@ -832,8 +826,6 @@ def autouse(myvartree, use_cache=1, mysettings=None):
break
if dep_met:
myusevars += " "+myuse
- if myusevars:
- autouse_val = myusevars
return myusevars
def check_config_instance(test):