diff options
Diffstat (limited to 'src/libstore/misc.cc')
-rw-r--r-- | src/libstore/misc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc index abe59d162..4ac0afe84 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)) |