diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-04 13:36:54 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-04 16:15:54 +0200 |
commit | 538a64e8c314f23ba0c5d76201f1c20e71884a21 (patch) | |
tree | 34bdfda7346d53014619cbfa33bf1398bad4b5e2 /src/nix/command.cc | |
parent | b6c768fb6a341bf1c5fe4a2d2a929415e8519b25 (diff) |
Add a Store::addToStore() variant that accepts a NAR
As a side effect, this ensures that signatures are propagated when
copying paths between stores.
Also refactored import/export to make use of this.
Diffstat (limited to 'src/nix/command.cc')
-rw-r--r-- | src/nix/command.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc index c8d91737d..253c9686b 100644 --- a/src/nix/command.cc +++ b/src/nix/command.cc @@ -108,7 +108,7 @@ void StorePathsCommand::run(ref<Store> store) PathSet closure; for (auto & storePath : storePaths) store->computeFSClosure(storePath, closure, false, false); - storePaths = store->topoSortPaths(closure); + storePaths = Paths(closure.begin(), closure.end()); } } |