From a71d02440b03cdb5dad6e43f786c0cc86cbb87b1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 30 Dec 2011 17:13:25 +0000 Subject: [PATCH] * Oops. --- src/libstore/misc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc index abe59d1628..4ac0afe844 100644 --- a/src/libstore/misc.cc +++ b/src/libstore/misc.cc @@ -103,10 +103,10 @@ static void dfsVisit(StoreAPI & store, const PathSet & paths, { if (parents.find(path) != parents.end()) throw BuildError(format("cycle detected in the references of `%1%'") % path); - parents.insert(path); if (visited.find(path) != visited.end()) return; visited.insert(path); + parents.insert(path); PathSet references; if (store.isValidPath(path))