summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-07-16 07:38:19 +0000
committerMarius Mauch <genone@gentoo.org>2007-07-16 07:38:19 +0000
commitdc7fb26b67cb64b2ef1c8776be15ec253530a7b0 (patch)
treeff068bd27372b9af09f82087baff873b006b9fee
parent95c71081646b7bdd4c0f8b55efd7746753ba8311 (diff)
downloadportage-dc7fb26b67cb64b2ef1c8776be15ec253530a7b0.tar.gz
portage-dc7fb26b67cb64b2ef1c8776be15ec253530a7b0.tar.bz2
portage-dc7fb26b67cb64b2ef1c8776be15ec253530a7b0.zip
fix load logic for editable sets once more
svn path=/main/trunk/; revision=7274
-rw-r--r--pym/portage/sets/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py
index 2b48ca6cb..d355823cd 100644
--- a/pym/portage/sets/__init__.py
+++ b/pym/portage/sets/__init__.py
@@ -31,10 +31,8 @@ class PackageSet(object):
def getAtoms(self):
if not self._loaded:
- # Order is important for the next two statements as load() may change
- # _loaded to a more specific value for editable subclasses
- self._loaded = True
self.load()
+ self._loaded = True
return self._atoms
def _setAtoms(self, atoms):
@@ -63,6 +61,10 @@ class PackageSet(object):
class EditablePackageSet(PackageSet):
+ def getAtoms(self):
+ self.load()
+ return self._atoms
+
def updateAtoms(self, atoms):
self.load()
self._atoms.update(atoms)