diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-03-07T22·55+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-03-07T22·55+0100 |
commit | 28bba8c44f484eae38e8a15dcec73cfa999156f6 (patch) | |
tree | f5e009a14192dc56a741703d08c622cf7236dc5b /src/libstore/gc.cc | |
parent | 8057a192e3254c936fa0bcb5715e09600a28e8f8 (diff) |
Prevent config.h from being clobbered
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r-- | src/libstore/gc.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 113a7da15411..a6b1a35e77ef 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -659,10 +659,7 @@ 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) { - if (pathExists(state.trashDir)) deleteGarbage(state, state.trashDir); - createDirs(state.trashDir); - } + if (state.shouldDelete) createDirs(state.trashDir); /* Now either delete all garbage paths, or just the specified paths (for gcDeleteSpecific). */ |