diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-03T19·09-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-03T19·09-0400 |
commit | 0a7084567fc4e7d077863075a7ea1bb82d843341 (patch) | |
tree | 4868d450da1e153b0660eede85105cb2b14d0859 /src/libstore/remote-store.hh | |
parent | a807edfae8428bf426ee6ae849a7a24d74d39202 (diff) |
Add a ‘--repair’ flag to nix-instantiate
This allows repairing corrupted derivations and other source files.
Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r-- | src/libstore/remote-store.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh index fe60ccb399d6..d23b0717663a 100644 --- a/src/libstore/remote-store.hh +++ b/src/libstore/remote-store.hh @@ -53,10 +53,10 @@ public: Path addToStore(const Path & srcPath, bool recursive = true, HashType hashAlgo = htSHA256, - PathFilter & filter = defaultPathFilter); + PathFilter & filter = defaultPathFilter, bool repair = false); Path addTextToStore(const string & name, const string & s, - const PathSet & references); + const PathSet & references, bool repair = false); void exportPath(const Path & path, bool sign, Sink & sink); |