Make copies of the groups attribute before modifying (regression from r3231).
authorZac Medico <zmedico@gentoo.org>
Tue, 25 Apr 2006 19:38:13 +0000 (19:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 25 Apr 2006 19:38:13 +0000 (19:38 -0000)
svn path=/main/trunk/; revision=3234

pym/portage.py

index b1816530ae0af9d9d9c4a37aec0fa49e306d3fd7..ced64e604d6c61601d5f0b0b20c3c9ee89e9cf39 100644 (file)
@@ -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):