Package: save validated_atoms as tuple
authorZac Medico <zmedico@gentoo.org>
Sat, 23 Jun 2012 01:23:20 +0000 (18:23 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 23 Jun 2012 01:23:20 +0000 (18:23 -0700)
pym/_emerge/Package.py

index 7bf7181baad4c52282746b0937a8e01b9767cf8a..14d069449782d3baa9f87567cc48bdeef04ebb14 100644 (file)
@@ -185,8 +185,8 @@ class Package(Task):
                        except InvalidDependString as e:
                                self._metadata_exception(k, e)
 
-               self._validated_atoms = frozenset(atom for atom in
-                       validated_atoms if isinstance(atom, Atom))
+               self._validated_atoms = tuple(set(atom for atom in
+                       validated_atoms if isinstance(atom, Atom)))
 
                k = 'PROVIDE'
                v = self.metadata.get(k)