about summary refs log tree commit diff
path: root/src/nix/installables.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-14T18·14+0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-16T18·56+0200
commitc36467ad2e2e27d04e681144e0e10417c53c10c1 (patch)
treebd4da6a3778873c5dfb976260a87e9c0a558cff0 /src/nix/installables.cc
parentb29b6feaba715432490e275a025b3361a021a99b (diff)
Improve substitution progress indicator
E.g.

  $ nix build --store local?root=/tmp/nix nixpkgs.firefox-unwrapped
  [0/1 built, 1/97/98 fetched, 65.8/92.8 MiB DL, 203.2/309.2 MiB copied] downloading 'https://cache.nixos.org/nar/1czm9fk0svacy4h6a3fzkpafi4f7a9gml36kk8cq1igaghbspg3k.nar.xz'
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r--src/nix/installables.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 54c9f7841fe0..9d812fee47ec 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -229,7 +229,7 @@ std::vector<std::shared_ptr<Installable>> InstallablesCommand::parseInstallables
 
 PathSet InstallablesCommand::toStorePaths(ref<Store> store, ToStorePathsMode mode)
 {
-    if (mode != DryRun)
+    if (mode != Build)
         settings.readOnlyMode = true;
 
     PathSet outPaths, buildables;