about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-22T11·18+0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-22T11·18+0100
commitde4c03d2014020d71e02eda3a63f7c401ceded5c (patch)
treec0fddea0822fd7d89c1fd2254441b995381c04b0 /src
parent88c90d5e6d3865dffedef8a83f24473aefc08646 (diff)
parentc7e0be1bfc79909cafd52645c88ceb8bcf2a588a (diff)
Merge branch 'fix/dry-run-partially' of https://github.com/dtzWill/nix
Diffstat (limited to 'src')
-rw-r--r--src/nix/build.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc
index b4f21b32d78f..b329ac38ac2b 100644
--- a/src/nix/build.cc
+++ b/src/nix/build.cc
@@ -52,6 +52,8 @@ struct CmdBuild : MixDryRun, InstallablesCommand
     {
         auto buildables = build(store, dryRun ? DryRun : Build, installables);
 
+        if (dryRun) return;
+
         for (size_t i = 0; i < buildables.size(); ++i) {
             auto & b(buildables[i]);