diff options
author | Shea Levy <shea@shealevy.com> | 2011-11-06T06·28+0000 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2011-11-06T06·28+0000 |
commit | af2e53fd481994cca46b9c003a6a8eae50cf951c (patch) | |
tree | a48f614d74b2e5c1e9b9fa91a6f8481f8d874f35 /src/nix-worker/nix-worker.cc | |
parent | 981edeab7b6b415c71d3421da6967ec7fc232e54 (diff) |
Include all outputs of derivations in the closure of explicitly-passed derivation paths
This required adding a queryOutputDerivationNames function in the store API
Diffstat (limited to 'src/nix-worker/nix-worker.cc')
-rw-r--r-- | src/nix-worker/nix-worker.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index 0fa1b40aede9..3587bd7fde2e 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-worker/nix-worker.cc @@ -331,6 +331,16 @@ static void performOp(unsigned int clientVersion, break; } + case wopQueryDerivationOutputNames: { + Path path = readStorePath(from); + startWork(); + StringSet names; + names = store->queryDerivationOutputNames(path); + stopWork(); + writeStringSet(names, to); + break; + } + case wopQueryDeriver: { Path path = readStorePath(from); startWork(); |