From fa9259f5f519386b4f32ac9490bc73459773e589 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 20 Dec 2004 13:43:32 +0000 Subject: * Simplify the substitute mechanism: - Drop the store expression. So now a substitute is just a command-line invocation (a program name + arguments). If you register a substitute you are responsible for registering the expression that built it (if any) as a root of the garbage collector. - Drop the substitutes-rev DB table. --- src/libstore/store.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/libstore/store.hh') diff --git a/src/libstore/store.hh b/src/libstore/store.hh index 10d2890b8f0d..6a989874bc3b 100644 --- a/src/libstore/store.hh +++ b/src/libstore/store.hh @@ -14,10 +14,6 @@ using namespace std; network). */ struct Substitute { - /* Store expression to be normalised and realised in order to - obtain `program'. */ - Path storeExpr; - /* Program to be executed to create the store path. Must be in the output path of `storeExpr'. */ Path program; @@ -73,6 +69,9 @@ void registerSubstitutes(const Transaction & txn, /* Return the substitutes expression for the given path. */ Substitutes querySubstitutes(const Path & srcPath); +/* Deregister all substitutes. */ +void clearSubstitutes(); + /* Register the validity of a path. */ void registerValidPath(const Transaction & txn, const Path & path); -- cgit 1.4.1