about summary refs log tree commit diff
path: root/src/libstore/derivations.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-10T14·17+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-10T14·17+0200
commitb65875f8595ba6d72c6d6a5de2eba4e9f3c9b6f5 (patch)
tree2fba1f572e7381cefe9f8f9e5fd21ad28a776a29 /src/libstore/derivations.cc
parentf90e9b65d67023d0deb158b87654ac692066552f (diff)
Export outputPaths function
This is useful for the new hydra-queue-runner.
Diffstat (limited to 'src/libstore/derivations.cc')
-rw-r--r--src/libstore/derivations.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc
index 7234ae5630..fbc1d99f3d 100644
--- a/src/libstore/derivations.cc
+++ b/src/libstore/derivations.cc
@@ -285,4 +285,13 @@ bool wantOutput(const string & output, const std::set<string> & wanted)
 }
 
 
+PathSet outputPaths(const Derivation & drv)
+{
+    PathSet paths;
+    for (auto & i : drv.outputs)
+        paths.insert(i.second.path);
+    return paths;
+}
+
+
 }