From 709773726b6f2327c9dffa674988f5e0122d624a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 26 Apr 2006 03:36:42 +0000 Subject: Remove portage.config.groups (formerly portage.groups) and instead use ACCEPT_KEYWORDS directly (simplifies the code). svn path=/main/trunk/; revision=3238 --- pym/portage.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'pym') diff --git a/pym/portage.py b/pym/portage.py index c393a3216..879ec21d9 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1282,9 +1282,6 @@ class config: self._init_dirs() - # Repoman may modify this attribute as necessary. - self.groups = self["ACCEPT_KEYWORDS"].split() - def _init_dirs(self): """Create tmp, var/tmp and var/lib/portage (relative to $ROOT).""" @@ -3512,7 +3509,7 @@ def getmaskingstatus(mycpv): if not eapi_is_supported(eapi): return ["required EAPI %s, supported EAPI %s" % (eapi, portage_const.EAPI)] mygroups = mygroups.split() - pgroups = settings.groups[:] # Make a local copy so we can modify it. + pgroups = settings["ACCEPT_KEYWORDS"].split() myarch = settings["ARCH"] pkgdict = settings.pkeywordsdict @@ -5155,7 +5152,7 @@ class portdbapi(dbapi): continue mygroups=keys.split() # Repoman may modify this attribute as necessary. - pgroups = self.mysettings.groups[:] # Make a local copy so we can modify it. + pgroups = self.mysettings["ACCEPT_KEYWORDS"].split() match=0 cp = dep_getkey(mycpv) if pkgdict.has_key(cp): -- cgit v1.2.3-1-g7c22