Remove global autouse cache since most people don't use it anyway and it's broken...
authorZac Medico <zmedico@gentoo.org>
Thu, 6 Jul 2006 02:46:13 +0000 (02:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 6 Jul 2006 02:46:13 +0000 (02:46 -0000)
svn path=/main/trunk/; revision=3797

pym/portage.py

index dd2b17971a3402c4671ac1fbd0b6992ae27cf9b8..e368ef315b5f0dd15bc71276bdab149205091d10 100644 (file)
@@ -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):