mirror of
https://github.com/NixOS/nix
synced 2025-06-29 23:13:14 +02:00
Use RealisedPath
s in copyPaths
That way we can copy the realisations too (in addition to the store paths themselves)
This commit is contained in:
parent
c189031e8b
commit
2e199673a5
4 changed files with 31 additions and 28 deletions
|
@ -50,12 +50,12 @@ static int main_nix_copy_closure(int argc, char ** argv)
|
|||
auto to = toMode ? openStore(remoteUri) : openStore();
|
||||
auto from = toMode ? openStore() : openStore(remoteUri);
|
||||
|
||||
StorePathSet storePaths2;
|
||||
RealisedPath::Set storePaths2;
|
||||
for (auto & path : storePaths)
|
||||
storePaths2.insert(from->followLinksToStorePath(path));
|
||||
|
||||
StorePathSet closure;
|
||||
from->computeFSClosure(storePaths2, closure, false, includeOutputs);
|
||||
RealisedPath::Set closure;
|
||||
RealisedPath::closure(*from, storePaths2, closure);
|
||||
|
||||
copyPaths(from, to, closure, NoRepair, NoCheckSigs, useSubstitutes);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue