1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-14 13:01:05 +01:00

Combine cleanupBuild and deleteTmpDir

It's hard to tell if I changed any behavior, but if I did, I think I
made it better, because now we explicitly move stuff out of the chroot
(if we were going to) before trying to delete the chroot.
This commit is contained in:
John Ericson 2025-08-28 12:26:29 -04:00
parent 4db6bf96b7
commit 557bbe969e
4 changed files with 10 additions and 24 deletions

View file

@ -66,7 +66,7 @@ DerivationBuildingGoal::~DerivationBuildingGoal()
ignoreExceptionInDestructor();
}
try {
builder->deleteTmpDir(false);
builder->cleanupBuild(false);
} catch (...) {
ignoreExceptionInDestructor();
}