diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-12-30 17:13:25 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-12-30 17:13:25 +0000 |
commit | a71d02440b03cdb5dad6e43f786c0cc86cbb87b1 (patch) | |
tree | 992e58af26b8466b3b72986cfb0db2c5059d62e6 /src/libstore/misc.cc | |
parent | 6f5e3326cef2a2049c8f4ea757accafe4fc9d53f (diff) |
* Oops.
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)) |