mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Add a dummy Store::buildPaths() method
This default implementation of buildPaths() does nothing if all
requested paths are already valid, and throws an "unsupported
operation" error otherwise. This fixes a regression introduced by
c30330df6f
in binary cache and legacy
SSH stores.
This commit is contained in:
parent
b0b81b7500
commit
0dddcf867a
5 changed files with 36 additions and 38 deletions
|
@ -523,6 +523,17 @@ const Store::Stats & Store::getStats()
|
|||
}
|
||||
|
||||
|
||||
void Store::buildPaths(const PathSet & paths, BuildMode buildMode)
|
||||
{
|
||||
for (auto & path : paths)
|
||||
if (isDerivation(path))
|
||||
unsupported();
|
||||
|
||||
if (queryValidPaths(paths).size() != paths.size())
|
||||
unsupported();
|
||||
}
|
||||
|
||||
|
||||
void copyStorePath(ref<Store> srcStore, ref<Store> dstStore,
|
||||
const Path & storePath, bool repair, bool dontCheckSigs)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue