diff options
-rw-r--r-- | pym/portage/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |