mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
Added some state-specific garbage collection code (not complete yet)
This commit is contained in:
parent
43d93e5e64
commit
d69dd855d5
18 changed files with 199 additions and 103 deletions
|
|
@ -641,10 +641,10 @@ static void installDerivations(Globals & globals,
|
|||
comparePaths.insert(statePath);
|
||||
comparePaths.insert(read_statePath);
|
||||
if(store->toNonSharedPathSet(comparePaths).size() != 1) //TODO !!!!!!!!!!!!!??
|
||||
copyContents(externalState, statePath);
|
||||
rsyncPaths(externalState, statePath);
|
||||
}
|
||||
else
|
||||
copyContents(externalState, statePath);
|
||||
rsyncPaths(externalState, statePath);
|
||||
|
||||
deletePath(externalState);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue