From: Zac Medico Date: Tue, 25 Apr 2006 19:38:13 +0000 (-0000) Subject: Make copies of the groups attribute before modifying (regression from r3231). X-Git-Tag: v2.1_pre10~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e0e6d8b39b534ec802b925a6920a06d0ecf074c3;p=portage.git Make copies of the groups attribute before modifying (regression from r3231). svn path=/main/trunk/; revision=3234 --- diff --git a/pym/portage.py b/pym/portage.py index b1816530a..ced64e604 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3512,7 +3512,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 + pgroups = settings.groups[:] # Make a local copy so we can modify it. myarch = settings["ARCH"] pkgdict = settings.pkeywordsdict @@ -5148,7 +5148,7 @@ class portdbapi(dbapi): continue mygroups=keys.split() # Repoman may modify this attribute as necessary. - pgroups = self.mysettings.groups + pgroups = self.mysettings.groups[:] # Make a local copy so we can modify it. match=0 cp = dep_getkey(mycpv) if pkgdict.has_key(cp):