diff options
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/libstore/build.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index 85be95d557f..b94bca5359a 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc | |||
| @@ -3370,7 +3370,10 @@ void DerivationGoal::registerOutputs() | |||
| 3370 | assert(false); // shouldn't happen | 3370 | assert(false); // shouldn't happen |
| 3371 | } | 3371 | } |
| 3372 | 3372 | ||
| 3373 | if (settings.keepFailed) { | 3373 | /* Rename the built package when doing multiple rounds, but |
| 3374 | don't move the package when running in check mode, since | ||
| 3375 | that would remove the valid package from the store. */ | ||
| 3376 | if (settings.keepFailed && buildMode != bmCheck) { | ||
| 3374 | for (auto & i : drv.outputs) { | 3377 | for (auto & i : drv.outputs) { |
| 3375 | Path prev = i.second.path + checkSuffix; | 3378 | Path prev = i.second.path + checkSuffix; |
| 3376 | if (pathExists(prev)) deletePath(prev); | 3379 | if (pathExists(prev)) deletePath(prev); |
