* Implement RemoteStore::queryDerivationOutputs().

This commit is contained in:
Eelco Dolstra 2010-02-25 15:52:22 +00:00
parent af565c348a
commit e42401ee7b
3 changed files with 10 additions and 3 deletions

View file

@ -313,14 +313,16 @@ static void performOp(unsigned int clientVersion,
}
case wopQueryReferences:
case wopQueryReferrers: {
case wopQueryReferrers:
case wopQueryDerivationOutputs: {
Path path = readStorePath(from);
startWork();
PathSet paths;
if (op == wopQueryReferences)
store->queryReferences(path, paths);
else
else if (op == wopQueryReferrers)
store->queryReferrers(path, paths);
else paths = store->queryDerivationOutputs(path);
stopWork();
writeStringSet(paths, to);
break;