From e0e6d8b39b534ec802b925a6920a06d0ecf074c3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 25 Apr 2006 19:38:13 +0000 Subject: [PATCH] Make copies of the groups attribute before modifying (regression from r3231). svn path=/main/trunk/; revision=3234 --- pym/portage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.26.2