diff options
Diffstat (limited to 'src/libmain')
-rw-r--r-- | src/libmain/shared.cc | 4 | ||||
-rw-r--r-- | src/libmain/shared.hh | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index 43ec4bcdd482..f0035c358f1d 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -52,11 +52,11 @@ void printGCWarning() } -void printMissing(const PathSet & paths) +void printMissing(StoreAPI & store, const PathSet & paths) { unsigned long long downloadSize, narSize; PathSet willBuild, willSubstitute, unknown; - queryMissing(paths, willBuild, willSubstitute, unknown, downloadSize, narSize); + queryMissing(store, paths, willBuild, willSubstitute, unknown, downloadSize, narSize); if (!willBuild.empty()) { printMsg(lvlInfo, format("these derivations will be built:")); diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh index c99810c78a20..bd3d19531a80 100644 --- a/src/libmain/shared.hh +++ b/src/libmain/shared.hh @@ -24,11 +24,13 @@ namespace nix { MakeError(UsageError, nix::Error); +class StoreAPI; + /* Ugh. No better place to put this. */ Path makeRootName(const Path & gcRoot, int & counter); void printGCWarning(); -void printMissing(const PathSet & paths); +void printMissing(StoreAPI & store, const PathSet & paths); template<class N> N getIntArg(const string & opt, Strings::iterator & i, const Strings::iterator & end) |