aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-10 11:11:46 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-10 11:11:46 +0100
commit8a1d8701f6efa07534e4e0500bc561f1c33fc25f (patch)
tree7f4a2bd006213bfc85ca4119b3614f8fab9ce51f
parent983fab7ea994c3e377e82e4c2f5dbb097820990a (diff)
nix-store -q --graph: Fix edges
Fixes #3389.
-rw-r--r--src/nix-store/dotgraph.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/dotgraph.cc b/src/nix-store/dotgraph.cc
index c9837b3e7..667d917f5 100644
--- a/src/nix-store/dotgraph.cc
+++ b/src/nix-store/dotgraph.cc
@@ -61,7 +61,7 @@ void printDotGraph(ref<Store> store, StorePathSet && roots)
for (auto & p : store->queryPathInfo(path)->references) {
if (p != path) {
workList.insert(p.clone());
- cout << makeEdge(std::string(p.to_string()), std::string(p.to_string()));
+ cout << makeEdge(std::string(p.to_string()), std::string(path.to_string()));
}
}
}