diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-store/dotgraph.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nix-store/dotgraph.cc b/src/nix-store/dotgraph.cc index fa8d353bc4fc..1d8ebfbd0351 100644 --- a/src/nix-store/dotgraph.cc +++ b/src/nix-store/dotgraph.cc @@ -108,8 +108,10 @@ void printDotGraph(const PathSet & roots) for (PathSet::iterator i = references.begin(); i != references.end(); ++i) { - workList.insert(*i); - cout << makeEdge(*i, path); + if (*i != path) { + workList.insert(*i); + cout << makeEdge(*i, path); + } } |