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:
parent
4db6bf96b7
commit
557bbe969e
4 changed files with 10 additions and 24 deletions
|
|
@ -66,7 +66,7 @@ DerivationBuildingGoal::~DerivationBuildingGoal()
|
|||
ignoreExceptionInDestructor();
|
||||
}
|
||||
try {
|
||||
builder->deleteTmpDir(false);
|
||||
builder->cleanupBuild(false);
|
||||
} catch (...) {
|
||||
ignoreExceptionInDestructor();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue