summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)