aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2020-04-10 09:47:57 +0200
committerGitHub <noreply@github.com>2020-04-10 09:47:57 +0200
commitdb25a6d7bb00add95bf9c086c04a97c05c100dac (patch)
treeae55a8bc8628b06b5cd38fea803c5610ef489e6a /src/libstore
parentf46cb682f11d2a34536d46a71be3a84f99ed6b02 (diff)
parent16a4864759a80aa03b9c87b8aeaf7a4c31c03e39 (diff)
Merge pull request #2689 from tollb/fix/delete_tmp_dir_when_build_check_ok
Delete temporary directory on successful build
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 0febb8dfb..760663ac9 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1680,6 +1680,7 @@ void DerivationGoal::buildDone()
}
if (buildMode == bmCheck) {
+ deleteTmpDir(true);
done(BuildResult::Built);
return;
}