In SetConfig.getSetAtoms(), access self.psets directly in order to avoid v2.2_rc13
authorZac Medico <zmedico@gentoo.org>
Sat, 1 Nov 2008 23:12:59 +0000 (23:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 1 Nov 2008 23:12:59 +0000 (23:12 -0000)
making a copy and also to avoid potential swallowing of an unexpected
KeyError.

svn path=/main/trunk/; revision=11791

pym/portage/sets/__init__.py

index a668c83246d938941e4aed7043cd547c5cd0010a..ef7c1d9381105bf5983498e3f3013174b617b9c6 100644 (file)
@@ -138,8 +138,9 @@ class SetConfig(object):
                """
                This raises PackageSetNotFound if the give setname does not exist.
                """
+               self._parse()
                try:
-                       myset = self.getSets()[setname]
+                       myset = self.psets[setname]
                except KeyError:
                        raise PackageSetNotFound(setname)
                myatoms = myset.getAtoms()