From a5fbe42b9cd508dcd829c9ccbb73f975a4d31db5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 28 Dec 2007 18:27:51 +0000 Subject: [PATCH] Make key_expand() use dbapi.categories. svn path=/main/trunk/; revision=9081 --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2