From: Marius Mauch Date: Mon, 16 Jul 2007 12:53:13 +0000 (-0000) Subject: break recursion cycle X-Git-Tag: v2.2_pre1~1012 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c025f5a7ac4da2a390a4b60a1af69a82df585d2d;p=portage.git break recursion cycle svn path=/main/trunk/; revision=7280 --- 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):