mirror of
https://github.com/NixOS/nix
synced 2025-06-29 23:13:14 +02:00
copyPaths: Pass store by reference
This commit is contained in:
parent
8d9f7048cd
commit
668abd3e57
8 changed files with 81 additions and 54 deletions
|
@ -54,7 +54,7 @@ static int main_nix_copy_closure(int argc, char ** argv)
|
|||
for (auto & path : storePaths)
|
||||
storePaths2.insert(from->followLinksToStorePath(path));
|
||||
|
||||
copyClosure(from, to, storePaths2, NoRepair, NoCheckSigs, useSubstitutes);
|
||||
copyClosure(*from, *to, storePaths2, NoRepair, NoCheckSigs, useSubstitutes);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue