diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-12-20T13·43+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-12-20T13·43+0000 |
commit | fa9259f5f519386b4f32ac9490bc73459773e589 (patch) | |
tree | c99bc5b3e04334020b8886081c6201246fab41ce /src/libstore/store.hh | |
parent | 015beb7cd04ee75d58bf09ef89816f9301cda646 (diff) |
* 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.
Diffstat (limited to 'src/libstore/store.hh')
-rw-r--r-- | src/libstore/store.hh | 7 |
1 files changed, 3 insertions, 4 deletions
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); |