diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-18 10:47:59 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-18 10:47:59 -0400 |
commit | fe241ece2932492866693d268d02a7912e766ac7 (patch) | |
tree | 2cb24a4d45f563e32946bf34d878969bd05263ec /src/nix-worker | |
parent | a6f348599c94d8a5f7b41c7d8e43658dc6407be7 (diff) | |
parent | ccc52adfb2121ade510d35dc9b91193af9fa731e (diff) |
Merge branch 'master' into no-manifests
Diffstat (limited to 'src/nix-worker')
-rw-r--r-- | src/nix-worker/nix-worker.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index d3907fa8f..f2ca0a892 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-worker/nix-worker.cc @@ -368,6 +368,15 @@ static void performOp(unsigned int clientVersion, break; } + case wopQueryPathFromHashPart: { + string hashPart = readString(from); + startWork(); + Path path = store->queryPathFromHashPart(hashPart); + stopWork(); + writeString(path, to); + break; + } + case wopAddToStore: { string baseName = readString(from); bool fixed = readInt(from) == 1; /* obsolete */ |