From: Zac Medico Date: Thu, 29 Jun 2006 04:22:18 +0000 (-0000) Subject: Pass a config instance into the vardbapi constructor so that it doesn't have to rely... X-Git-Tag: v2.1.1~351 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=edfa3452f8d7d2a89eb5687f0c30cca9a0f14dcd;p=portage.git Pass a config instance into the vardbapi constructor so that it doesn't have to rely on global settings. svn path=/main/trunk/; revision=3689 --- diff --git a/pym/portage.py b/pym/portage.py index 4393176c9..4c1e2b1c5 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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):