summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-01 23:12:59 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-01 23:12:59 +0000
commit73637d530d97987646ab6610c0f4744f18c5b2f6 (patch)
treeb59bc697eca2ee3ec0da995b4646db5e81c193c7
parentc24543fe6001892be679dfd8ca33c843ed6fa349 (diff)
downloadportage-73637d530d97987646ab6610c0f4744f18c5b2f6.tar.gz
portage-73637d530d97987646ab6610c0f4744f18c5b2f6.tar.bz2
portage-73637d530d97987646ab6610c0f4744f18c5b2f6.zip
In SetConfig.getSetAtoms(), access self.psets directly in order to avoidv2.2_rc13
making a copy and also to avoid potential swallowing of an unexpected KeyError. svn path=/main/trunk/; revision=11791
-rw-r--r--pym/portage/sets/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py
index a668c8324..ef7c1d938 100644
--- a/pym/portage/sets/__init__.py
+++ b/pym/portage/sets/__init__.py
@@ -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()