svn path=/main/trunk/; revision=7694
bestm = x
return bestm
-_match_from_list_cache = {}
-
def match_from_list(mydep, candidate_list):
"""
Searches list for entries that matches the package.
@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:]
continue
mylist.append(x)
- _match_from_list_cache[cache_key] = mylist
- return mylist[:]
+ return mylist