From: Zac Medico Date: Fri, 28 Dec 2007 18:27:51 +0000 (-0000) Subject: Make key_expand() use dbapi.categories. X-Git-Tag: v2.2_pre1~102 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5fbe42b9cd508dcd829c9ccbb73f975a4d31db5;p=portage.git Make key_expand() use dbapi.categories. svn path=/main/trunk/; revision=9081 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 0b5ddfc52..31370e325 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5511,7 +5511,7 @@ def key_expand(mykey, mydb=None, use_cache=1, settings=None): virts_p = settings.get_virts_p("/") if len(mysplit)==1: if hasattr(mydb, "cp_list"): - for x in settings.categories: + for x in mydb.categories: if mydb.cp_list(x+"/"+mykey,use_cache=use_cache): return x+"/"+mykey if virts_p.has_key(mykey):