summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-07-16 12:53:13 +0000
committerMarius Mauch <genone@gentoo.org>2007-07-16 12:53:13 +0000
commitc025f5a7ac4da2a390a4b60a1af69a82df585d2d (patch)
treede65305d1289fccfbd2875ac29a2ab2e82e498ca
parentc94b9c585dc0b2433f18642b8ab02f28c4d0941a (diff)
downloadportage-c025f5a7ac4da2a390a4b60a1af69a82df585d2d.tar.gz
portage-c025f5a7ac4da2a390a4b60a1af69a82df585d2d.tar.bz2
portage-c025f5a7ac4da2a390a4b60a1af69a82df585d2d.zip
break recursion cycle
svn path=/main/trunk/; revision=7280
-rw-r--r--pym/portage/sets/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py
index a7428c092..cab64279b 100644
--- a/pym/portage/sets/__init__.py
+++ b/pym/portage/sets/__init__.py
@@ -27,7 +27,8 @@ class PackageSet(object):
self._atoms = set()
self._atommap = {}
self._loaded = False
-
+ self._loading = False
+
def __contains__(self, atom):
return atom in self.getAtoms()
@@ -41,9 +42,11 @@ class PackageSet(object):
return op in self._operations
def getAtoms(self):
- if not self._loaded:
+ if not self._loaded and not self._loading:
+ self._loading = True
self.load()
self._loaded = True
+ self._loading = False
return self._atoms
def _setAtoms(self, atoms):