1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-26 04:00:59 +01:00

Implemented runtime --share= and --unshare options. Fixed some things.

This commit is contained in:
Wouter den Breejen 2007-10-02 15:52:50 +00:00
parent 86f0fd8341
commit d0458acb7c
14 changed files with 90 additions and 54 deletions

View file

@ -615,9 +615,10 @@ static void performOp(Source & from, Sink & to, unsigned int op)
case wopUnShareState: {
Path path = readString(from);
bool copyFromOld = readInt(from) == 1;
bool branch = readInt(from) == 1;
bool restoreOld = readInt(from) == 1;
startWork();
store->unShareState(path, copyFromOld);
store->unShareState(path, branch, restoreOld);
stopWork();
writeInt(1, to);
break;