summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-28 12:12:53 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-28 12:12:53 +0000
commit2b7f738afec20af189382c07cfc611fbf6b0db62 (patch)
treed49c1794692707e4b7a0b79d1fba43a6c8120002
parentccf627a7dde301341fafd061e40e7c5438d5b983 (diff)
downloadportage-2b7f738afec20af189382c07cfc611fbf6b0db62.tar.gz
portage-2b7f738afec20af189382c07cfc611fbf6b0db62.tar.bz2
portage-2b7f738afec20af189382c07cfc611fbf6b0db62.zip
Remove global db usage from portdbapi.gvisible().
svn path=/main/trunk/; revision=3259
-rw-r--r--pym/portage.py4
1 files 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: