diff options
author | regnat <rg@regnat.ovh> | 2020-12-14 19:43:53 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-02-25 17:18:48 +0100 |
commit | 2e199673a523fa81de31ffdd2a25976ce0814631 (patch) | |
tree | 0fb1d53de185add0561cf4915ceab626f55c0227 /src/nix-copy-closure | |
parent | c189031e8be0530d73a817571ad7f81ad5eedce6 (diff) |
Use `RealisedPath`s in `copyPaths`
That way we can copy the realisations too (in addition to the store
paths themselves)
Diffstat (limited to 'src/nix-copy-closure')
-rwxr-xr-x | src/nix-copy-closure/nix-copy-closure.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix-copy-closure/nix-copy-closure.cc b/src/nix-copy-closure/nix-copy-closure.cc index 5e8cc515b..02ccbe541 100755 --- a/src/nix-copy-closure/nix-copy-closure.cc +++ b/src/nix-copy-closure/nix-copy-closure.cc @@ -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); |