aboutsummaryrefslogtreecommitdiff
path: root/src/nix/command.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/command.cc')
-rw-r--r--src/nix/command.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc
index 37534015b..5a8288da9 100644
--- a/src/nix/command.cc
+++ b/src/nix/command.cc
@@ -81,7 +81,7 @@ StoreCommand::StoreCommand()
void StoreCommand::run()
{
- run(openStoreAt(storeUri));
+ run(openStore(storeUri));
}
StorePathsCommand::StorePathsCommand()
@@ -106,8 +106,8 @@ void StorePathsCommand::run(ref<Store> store)
if (recursive) {
PathSet closure;
- for (auto & storePath : storePaths)
- store->computeFSClosure(storePath, closure, false, false);
+ store->computeFSClosure(PathSet(storePaths.begin(), storePaths.end()),
+ closure, false, false);
storePaths = Paths(closure.begin(), closure.end());
}
}