dirnode.build_manifest(): tolerate cycles in the directory graph

This commit is contained in:
Brian Warner 2007-07-21 15:40:13 -07:00
parent e3a57fca98
commit 32fcf0b405

View File

@ -354,7 +354,7 @@ class ImmutableDirectoryNode:
dl = []
for name, child in res.iteritems():
manifest.add(child.get_refresh_capability())
if IDirectoryNode.providedBy(child):
if IDirectoryNode.providedBy(child) and child not in manifest:
dl.append(self._build_manifest_from_node(child, manifest))
if dl:
return defer.DeferredList(dl)