From 73637d530d97987646ab6610c0f4744f18c5b2f6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Nov 2008 23:12:59 +0000 Subject: [PATCH] In SetConfig.getSetAtoms(), access self.psets directly in order to avoid making a copy and also to avoid potential swallowing of an unexpected KeyError. svn path=/main/trunk/; revision=11791 --- pym/portage/sets/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.26.2