mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
* Don't show cycles, they're not very useful.
This commit is contained in:
parent
e4d4969ae9
commit
1029716a8a
1 changed files with 4 additions and 2 deletions
|
@ -108,9 +108,11 @@ void printDotGraph(const PathSet & roots)
|
||||||
for (PathSet::iterator i = references.begin();
|
for (PathSet::iterator i = references.begin();
|
||||||
i != references.end(); ++i)
|
i != references.end(); ++i)
|
||||||
{
|
{
|
||||||
|
if (*i != path) {
|
||||||
workList.insert(*i);
|
workList.insert(*i);
|
||||||
cout << makeEdge(*i, path);
|
cout << makeEdge(*i, path);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue