fails["KEYWORDS.stupid"].append(x+"/"+y+".ebuild")
if "--ignore-arches" in myoptions:
- arches=[[repoman_settings["ARCH"], repoman_settings["ARCH"], portage.groups]]
+ arches = [[repoman_settings["ARCH"], repoman_settings["ARCH"],
+ repoman_settings.groups]]
else:
arches=[]
for keyword in myaux["KEYWORDS"].split():
fails["usage.obsolete"].append("%s/%s.ebuild: not migrated to modular X" % (x, y))
for keyword,arch,groups in arches:
- portage.groups=groups
if not profiles.has_key(arch):
# A missing profile will create an error further down
else:
os.environ["ACCEPT_KEYWORDS"]="-~"+arch
dep_settings=portage.config(config_profile_path=profdir, config_incrementals=portage_const.INCREMENTALS)
+ dep_settings.groups = groups
portage.portdb=portage.portdbapi(portdir, dep_settings)
portage.db["/"]["porttree"]=portage.portagetree("/",dep_settings.getvirtuals("/"))
arch_caches[prof[0]]=[dep_settings, portage.portdb, portage.db["/"]["porttree"]]
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)."""
if not eapi_is_supported(eapi):
return ["required EAPI %s, supported EAPI %s" % (eapi, portage_const.EAPI)]
mygroups = mygroups.split()
- pgroups=groups[:]
+ pgroups = settings.groups
myarch = settings["ARCH"]
pkgdict = settings.pkeywordsdict
def gvisible(self,mylist):
"strip out group-masked (not in current group) entries"
- global db, groups
+ global db
if mylist is None:
return []
newlist=[]
#print "!!! No KEYWORDS for "+str(mycpv)+" -- Untested Status"
continue
mygroups=keys.split()
- pgroups=groups[:]
+ # Repoman may modify this attribute as necessary.
+ pgroups = self.mysettings.groups
match=0
cp = dep_getkey(mycpv)
if pkgdict.has_key(cp):
# COMPATABILITY -- This shouldn't be used.
pkglines = settings.packages
-groups = settings["ACCEPT_KEYWORDS"].split()
+groups = settings["ACCEPT_KEYWORDS"].split() # DEPRECATED (no longer used)
archlist = settings.archlist()
# Clear the cache