From 28bba8c44f484eae38e8a15dcec73cfa999156f6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 7 Mar 2013 23:55:55 +0100 Subject: Prevent config.h from being clobbered --- src/libstore/gc.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/libstore/gc.cc') 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). */ -- cgit 1.4.1