nix-store -q --graph: Fix edges

Fixes #3389.
This commit is contained in:
Eelco Dolstra 2020-03-10 11:11:46 +01:00
parent 983fab7ea9
commit 8a1d8701f6
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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()));
}
}
}