summaryrefslogtreecommitdiffstats
path: root/pym/portage_dep.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-09-06 17:00:37 +0000
committerZac Medico <zmedico@gentoo.org>2007-09-06 17:00:37 +0000
commit4bb7f4496d15115ce7d752fb0f44b018629d04ca (patch)
tree53e33d8bc469e66902451bec3588a9fcfa3acb76 /pym/portage_dep.py
parente5e0929f206a5cec0fd6e67e87c501f89efae7b5 (diff)
downloadportage-4bb7f4496d15115ce7d752fb0f44b018629d04ca.tar.gz
portage-4bb7f4496d15115ce7d752fb0f44b018629d04ca.tar.bz2
portage-4bb7f4496d15115ce7d752fb0f44b018629d04ca.zip
Don't cache results from match_from_list() since *dbapi.match() caches do the job. (trunk r7694)
svn path=/main/branches/2.1.2/; revision=7730
Diffstat (limited to 'pym/portage_dep.py')
-rw-r--r--pym/portage_dep.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index a8007857e..c00da1163 100644
--- a/pym/portage_dep.py
+++ b/pym/portage_dep.py
@@ -543,8 +543,6 @@ def best_match_to_list(mypkg, mylist):
bestm = x
return bestm
-_match_from_list_cache = {}
-
def match_from_list(mydep, candidate_list):
"""
Searches list for entries that matches the package.
@@ -557,12 +555,6 @@ def match_from_list(mydep, candidate_list):
@return: A list of package atoms that match the given package atom
"""
- global _match_from_list_cache
- cache_key = (mydep, tuple(candidate_list))
- mylist = _match_from_list_cache.get(cache_key, None)
- if mylist is not None:
- return mylist[:]
-
from portage_util import writemsg
if mydep[0] == "!":
mydep = mydep[1:]
@@ -666,5 +658,4 @@ def match_from_list(mydep, candidate_list):
continue
mylist.append(x)
- _match_from_list_cache[cache_key] = mylist
- return mylist[:]
+ return mylist