Pass a config instance into the vardbapi constructor so that it doesn't have to rely...
authorZac Medico <zmedico@gentoo.org>
Thu, 29 Jun 2006 04:22:18 +0000 (04:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 29 Jun 2006 04:22:18 +0000 (04:22 -0000)
svn path=/main/trunk/; revision=3689

pym/portage.py

index 4393176c94470377d93d7c41bf63e55ab53d9fb2..4c1e2b1c5646cdbfd3aabc10a9996736800daee0 100644 (file)
@@ -4629,7 +4629,8 @@ class vartree(packagetree):
                        self.settings = settings # for key_expand calls
                        if categories is None:
                                categories = settings.categories
-                       self.dbapi      = vardbapi(self.root,categories=categories)
+                       self.dbapi = vardbapi(
+                               self.root, categories=categories, settings=settings)
                        self.populated  = 1
 
        def zap(self,mycpv):