From 35db4f65a0f2ccbcaaef719e52b895fa78cad361 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 7 Oct 2016 19:15:25 +0200 Subject: Add copyClosure utility function for Hydra --- src/libstore/store-api.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libstore/store-api.hh') diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 8efacfd18ecc..b876ffbba765 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -585,6 +585,11 @@ void copyStorePath(ref srcStore, ref dstStore, const Path & storePath, bool repair = false); +/* Copy the closure of the specified paths from one store to another. */ +void copyClosure(ref srcStore, ref dstStore, + const PathSet & storePaths, bool repair = false); + + /* Remove the temporary roots file for this process. Any temporary root becomes garbage after this point unless it has been registered as a (permanent) root. */ -- cgit 1.4.1