mirror of
https://github.com/NixOS/nix.git
synced 2024-11-27 09:12:40 +00:00
printMissing(): Propagate store argument
This commit is contained in:
parent
ca6d287b33
commit
9f14d7d33a
@ -52,17 +52,17 @@ void printMissing(StoreAPI & store, const PathSet & paths)
|
|||||||
unsigned long long downloadSize, narSize;
|
unsigned long long downloadSize, narSize;
|
||||||
PathSet willBuild, willSubstitute, unknown;
|
PathSet willBuild, willSubstitute, unknown;
|
||||||
queryMissing(store, paths, willBuild, willSubstitute, unknown, downloadSize, narSize);
|
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,
|
const PathSet & willSubstitute, const PathSet & unknown,
|
||||||
unsigned long long downloadSize, unsigned long long narSize)
|
unsigned long long downloadSize, unsigned long long narSize)
|
||||||
{
|
{
|
||||||
if (!willBuild.empty()) {
|
if (!willBuild.empty()) {
|
||||||
printMsg(lvlInfo, format("these derivations will be built:"));
|
printMsg(lvlInfo, format("these derivations will be built:"));
|
||||||
Paths sorted = topoSortPaths(*store, willBuild);
|
Paths sorted = topoSortPaths(store, willBuild);
|
||||||
reverse(sorted.begin(), sorted.end());
|
reverse(sorted.begin(), sorted.end());
|
||||||
for (auto & i : sorted)
|
for (auto & i : sorted)
|
||||||
printMsg(lvlInfo, format(" %1%") % i);
|
printMsg(lvlInfo, format(" %1%") % i);
|
||||||
|
@ -35,7 +35,7 @@ void printGCWarning();
|
|||||||
|
|
||||||
void printMissing(StoreAPI & store, const PathSet & paths);
|
void printMissing(StoreAPI & store, const PathSet & paths);
|
||||||
|
|
||||||
void printMissing(const PathSet & willBuild,
|
void printMissing(StoreAPI & store, const PathSet & willBuild,
|
||||||
const PathSet & willSubstitute, const PathSet & unknown,
|
const PathSet & willSubstitute, const PathSet & unknown,
|
||||||
unsigned long long downloadSize, unsigned long long narSize);
|
unsigned long long downloadSize, unsigned long long narSize);
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ static void opRealise(Strings opFlags, Strings opArgs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (settings.get("print-missing", true))
|
if (settings.get("print-missing", true))
|
||||||
printMissing(willBuild, willSubstitute, unknown, downloadSize, narSize);
|
printMissing(*store, willBuild, willSubstitute, unknown, downloadSize, narSize);
|
||||||
|
|
||||||
if (dryRun) return;
|
if (dryRun) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user