1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 17:59:36 +01:00

* Added a command `nix-store --clear-failed-paths <PATHS>' to clear

the "failed" status of the given store paths.  The special value `*'
  clears all failed paths.
This commit is contained in:
Eelco Dolstra 2010-04-26 12:56:42 +00:00
parent 2398af13c5
commit 6199f9b93e
3 changed files with 33 additions and 1 deletions

View file

@ -187,6 +187,10 @@ public:
/* Return the set of paths that have failed to build.*/
PathSet queryFailedPaths();
/* Clear the "failed" status of the given paths. The special
value `*' causes all failed paths to be cleared. */
void clearFailedPaths(const PathSet & paths);
private:
Path schemaPath;
@ -207,6 +211,7 @@ private:
SQLiteStmt stmtRegisterFailedPath;
SQLiteStmt stmtHasPathFailed;
SQLiteStmt stmtQueryFailedPaths;
SQLiteStmt stmtClearFailedPath;
SQLiteStmt stmtAddDerivationOutput;
SQLiteStmt stmtQueryValidDerivers;
SQLiteStmt stmtQueryDerivationOutputs;