projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c24543f
)
In SetConfig.getSetAtoms(), access self.psets directly in order to avoid
v2.2_rc13
author
Zac Medico
<zmedico@gentoo.org>
Sat, 1 Nov 2008 23:12:59 +0000
(23:12 -0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage/sets/__init__.py
b/pym/portage/sets/__init__.py
index a668c83246d938941e4aed7043cd547c5cd0010a..ef7c1d9381105bf5983498e3f3013174b617b9c6 100644
(file)
--- 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()