about summary refs log tree commit diff
path: root/src/libmain/shared.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-28T14·16+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-28T14·16+0100
commit9f14d7d33a0fa2ea9a9a135664a77445972738a6 (patch)
tree69499886da815a737697f8bccc984f67e5fb312b /src/libmain/shared.cc
parentca6d287b338d30071bec4e4cd20d9a4c2577bf49 (diff)
printMissing(): Propagate store argument
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r--src/libmain/shared.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index a6e8f352a0ab..5106739c81ce 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -52,17 +52,17 @@ void printMissing(StoreAPI & store, const PathSet & paths)
     unsigned long long downloadSize, narSize;
     PathSet willBuild, willSubstitute, unknown;
     queryMissing(store, paths, willBuild, willSubstitute, unknown, downloadSize, narSize);
-    printMissing(willBuild, willSubstitute, unknown, downloadSize, narSize);
+    printMissing(store, willBuild, willSubstitute, unknown, downloadSize, narSize);
 }
 
 
-void printMissing(const PathSet & willBuild,
+void printMissing(StoreAPI & store, const PathSet & willBuild,
     const PathSet & willSubstitute, const PathSet & unknown,
     unsigned long long downloadSize, unsigned long long narSize)
 {
     if (!willBuild.empty()) {
         printMsg(lvlInfo, format("these derivations will be built:"));
-        Paths sorted = topoSortPaths(*store, willBuild);
+        Paths sorted = topoSortPaths(store, willBuild);
         reverse(sorted.begin(), sorted.end());
         for (auto & i : sorted)
             printMsg(lvlInfo, format("  %1%") % i);