summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-25 19:38:13 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-25 19:38:13 +0000
commite0e6d8b39b534ec802b925a6920a06d0ecf074c3 (patch)
tree568538df975abfd9893fb5e61ff09707167dfeb2
parenta54e775609d9ca35ba9181d0576b92e6ec5edbc5 (diff)
downloadportage-e0e6d8b39b534ec802b925a6920a06d0ecf074c3.tar.gz
portage-e0e6d8b39b534ec802b925a6920a06d0ecf074c3.tar.bz2
portage-e0e6d8b39b534ec802b925a6920a06d0ecf074c3.zip
Make copies of the groups attribute before modifying (regression from r3231).
svn path=/main/trunk/; revision=3234
-rw-r--r--pym/portage.py4
1 files 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):