diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-02-22T11·18+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-02-22T11·18+0100 |
commit | de4c03d2014020d71e02eda3a63f7c401ceded5c (patch) | |
tree | c0fddea0822fd7d89c1fd2254441b995381c04b0 /src/nix | |
parent | 88c90d5e6d3865dffedef8a83f24473aefc08646 (diff) | |
parent | c7e0be1bfc79909cafd52645c88ceb8bcf2a588a (diff) |
Merge branch 'fix/dry-run-partially' of https://github.com/dtzWill/nix
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/build.cc | 2 |
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]); |