aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-01-19 15:35:34 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-01-19 15:35:34 +0000
commit1029716a8a8934fe1f0502e3da0d65646f45c911 (patch)
tree34d606068e127f6fa7e68d71df2354e0bba5e6bd /src/nix-store
parente4d4969ae929682aea936e035cc24d56949a82ba (diff)
* Don't show cycles, they're not very useful.
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/dotgraph.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nix-store/dotgraph.cc b/src/nix-store/dotgraph.cc
index fa8d353bc..1d8ebfbd0 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);
+ }
}