From 2b7f738afec20af189382c07cfc611fbf6b0db62 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 28 Apr 2006 12:12:53 +0000 Subject: [PATCH] Remove global db usage from portdbapi.gvisible(). svn path=/main/trunk/; revision=3259 --- pym/portage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index 3034d432f..f17bf054c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5149,7 +5149,7 @@ class portdbapi(dbapi): def gvisible(self,mylist): "strip out group-masked (not in current group) entries" - global db + if mylist is None: return [] newlist=[] @@ -5160,7 +5160,7 @@ class portdbapi(dbapi): auxerr=0 keys = None try: - keys, eapi = db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS", "EAPI"]) + keys, eapi = self.aux_get(mycpv, ["KEYWORDS", "EAPI"]) except KeyError: pass except portage_exception.PortageException, e: -- 2.26.2