diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-07-14 14:23:38 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-07-14 18:29:07 +0200 |
commit | 6438ba22af57edc054e441053a7c3cd5d48e5597 (patch) | |
tree | c4d3f81b34d2031b0e03ab4c5fe0053123097b78 /src/nix/command.cc | |
parent | 15e8bd3bcb9b458ad3bc6188bdf531ecb6d65c4a (diff) |
StorePathsCommand: Don't build installables
On second though this was annoying. E.g. "nix log nixpkgs.hello" would
build/download Hello first, even though the log can be fetched
directly from the binary cache.
May need to revisit this.
Diffstat (limited to 'src/nix/command.cc')
-rw-r--r-- | src/nix/command.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc index 96b685a5b..6b608a708 100644 --- a/src/nix/command.cc +++ b/src/nix/command.cc @@ -115,7 +115,7 @@ void StorePathsCommand::run(ref<Store> store) } else { - for (auto & p : buildInstallables(store, false)) + for (auto & p : toStorePaths(store, NoBuild)) storePaths.push_back(p); if (recursive) { @@ -131,7 +131,7 @@ void StorePathsCommand::run(ref<Store> store) void StorePathCommand::run(ref<Store> store) { - auto storePaths = buildInstallables(store, false); + auto storePaths = toStorePaths(store, NoBuild); if (storePaths.size() != 1) throw UsageError("this command requires exactly one store path"); |