about summary refs log tree commit diff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-10-02T21·13-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-10-02T21·13-0400
commit2001895f3d2668549feb60a182aa624a7b6292eb (patch)
treef555841859d53cf821bf52dc89bd4d0fe9273186 /src/libstore/store-api.hh
parentcf46f194445c9abc0398dae908295dff794fee98 (diff)
Add a --repair flag to ‘nix-store -r’ to repair derivation outputs
With this flag, if any valid derivation output is missing or corrupt,
it will be recreated by using a substitute if available, or by
rebuilding the derivation.  The latter may use hash rewriting if
chroots are not available.
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index a562360ce3..800645fa44 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -184,7 +184,7 @@ public:
        output paths can be created by running the builder, after
        recursively building any sub-derivations. For inputs that are
        not derivations, substitute them. */
-    virtual void buildPaths(const PathSet & paths) = 0;
+    virtual void buildPaths(const PathSet & paths, bool repair = false) = 0;
 
     /* Ensure that a path is valid.  If it is not currently valid, it
        may be made valid by running a substitute (if defined for the