fix load logic for editable sets once more
authorMarius Mauch <genone@gentoo.org>
Mon, 16 Jul 2007 07:38:19 +0000 (07:38 -0000)
committerMarius Mauch <genone@gentoo.org>
Mon, 16 Jul 2007 07:38:19 +0000 (07:38 -0000)
svn path=/main/trunk/; revision=7274

pym/portage/sets/__init__.py

index 2b48ca6cb56150761110d3caee5fb93d75a196b6..d355823cd68cdfba49644f765e8c872ac2405a45 100644 (file)
@@ -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)