* Oops.
This commit is contained in:
parent
6f5e3326ce
commit
a71d02440b
|
@ -103,10 +103,10 @@ static void dfsVisit(StoreAPI & store, const PathSet & paths,
|
||||||
{
|
{
|
||||||
if (parents.find(path) != parents.end())
|
if (parents.find(path) != parents.end())
|
||||||
throw BuildError(format("cycle detected in the references of `%1%'") % path);
|
throw BuildError(format("cycle detected in the references of `%1%'") % path);
|
||||||
parents.insert(path);
|
|
||||||
|
|
||||||
if (visited.find(path) != visited.end()) return;
|
if (visited.find(path) != visited.end()) return;
|
||||||
visited.insert(path);
|
visited.insert(path);
|
||||||
|
parents.insert(path);
|
||||||
|
|
||||||
PathSet references;
|
PathSet references;
|
||||||
if (store.isValidPath(path))
|
if (store.isValidPath(path))
|
||||||
|
|
Loading…
Reference in a new issue