aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store/xmlgraph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-store/xmlgraph.cc')
-rw-r--r--src/nix-store/xmlgraph.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/nix-store/xmlgraph.cc b/src/nix-store/xmlgraph.cc
index b6e1c1c4b..0f7be7f7a 100644
--- a/src/nix-store/xmlgraph.cc
+++ b/src/nix-store/xmlgraph.cc
@@ -50,15 +50,10 @@ void printXmlGraph(ref<Store> store, const PathSet & roots)
cout << makeNode(path);
- PathSet references;
- store->queryReferences(path, references);
-
- for (PathSet::iterator i = references.begin();
- i != references.end(); ++i)
- {
- if (*i != path) {
- workList.insert(*i);
- cout << makeEdge(*i, path);
+ for (auto & p : store->queryPathInfo(path)->references) {
+ if (p != path) {
+ workList.insert(p);
+ cout << makeEdge(p, path);
}
}