Make sure PackageSet._atoms is always a set.
authorZac Medico <zmedico@gentoo.org>
Tue, 17 Jul 2007 04:21:51 +0000 (04:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 17 Jul 2007 04:21:51 +0000 (04:21 -0000)
svn path=/main/trunk/; revision=7288

pym/portage/sets/__init__.py

index 91ddc357383d83358129af032d381900002b244d..eaabd32dfa3e1375f368aecabfbd1bb76ea98415 100644 (file)
@@ -56,7 +56,7 @@ class PackageSet(object):
                                atoms.remove(a)
                        elif not isvalidatom(a):
                                raise InvalidAtom(a)
-               self._atoms = atoms
+               self._atoms = set(atoms)
                self._updateAtomMap()
 
        def load(self):