Make key_expand() use dbapi.categories.
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Dec 2007 18:27:51 +0000 (18:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Dec 2007 18:27:51 +0000 (18:27 -0000)
svn path=/main/trunk/; revision=9081

pym/portage/__init__.py

index 0b5ddfc52c953602effe59d32dd0338305cb44f9..31370e325886b0ed897797914325ab5d8c7e957a 100644 (file)
@@ -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):