mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
Implement backwards-compatible RemoteStore::addToStore()
The SSHStore PR adds this functionality to the daemon, but we have to handle the case where the Nix daemon is 1.11. Also, don't require signatures for trusted users. This restores 1.11 behaviour. Fixes https://github.com/NixOS/hydra/issues/398.
This commit is contained in:
parent
a83b10f84c
commit
21c55ab3b5
3 changed files with 25 additions and 3 deletions
|
@ -324,7 +324,7 @@ static void performOp(ref<LocalStore> store, bool trusted, unsigned int clientVe
|
|||
case wopImportPaths: {
|
||||
startWork();
|
||||
TunnelSource source(from);
|
||||
Paths paths = store->importPaths(source, 0);
|
||||
Paths paths = store->importPaths(source, 0, trusted);
|
||||
stopWork();
|
||||
to << paths;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue