mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
Used Rsync for reverting state.
This commit is contained in:
parent
138973a6d5
commit
84d00db70b
5 changed files with 33 additions and 71 deletions
|
|
@ -736,10 +736,10 @@ static void installDerivations(Globals & globals,
|
|||
comparePaths.insert(statePath);
|
||||
comparePaths.insert(read_statePath);
|
||||
if(store->toNonSharedPathSet(comparePaths).size() != 1) //TODO !!!!!!!!!!!!!??
|
||||
rsyncPaths(externalState, statePath);
|
||||
rsyncPaths(externalState, statePath, true);
|
||||
}
|
||||
else
|
||||
rsyncPaths(externalState, statePath);
|
||||
rsyncPaths(externalState, statePath, true);
|
||||
|
||||
deletePath(externalState);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue