mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Revert "Prevent config.h from being clobbered"
This reverts commit 28bba8c44f
.
This commit is contained in:
parent
e73d9e9488
commit
bdd4646338
27 changed files with 277 additions and 165 deletions
|
@ -659,7 +659,10 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
|||
increase, since we hold locks on everything. So everything
|
||||
that is not reachable from `roots'. */
|
||||
|
||||
if (state.shouldDelete) createDirs(state.trashDir);
|
||||
if (state.shouldDelete) {
|
||||
if (pathExists(state.trashDir)) deleteGarbage(state, state.trashDir);
|
||||
createDirs(state.trashDir);
|
||||
}
|
||||
|
||||
/* Now either delete all garbage paths, or just the specified
|
||||
paths (for gcDeleteSpecific). */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue