From 16748d80158875ae4cd54270be683fcf9c5d5169 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 28 Sep 2015 21:32:17 +0200 Subject: store: Add 'query-failed-paths' and 'clear-failed-paths' RPCs. Suggested by Mark H Weaver . * guix/store.scm (query-failed-paths, clear-failed-paths): New procedures. * tests/guix-daemon.sh: Add test with daemon started with --cache-failures. --- guix/store.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'guix') diff --git a/guix/store.scm b/guix/store.scm index 5f37e72589..c4e3573711 100644 --- a/guix/store.scm +++ b/guix/store.scm @@ -67,6 +67,8 @@ (define-module (guix store) add-to-store build-things build + query-failed-paths + clear-failed-paths add-temp-root add-indirect-root add-permanent-root @@ -889,6 +891,19 @@ (define ordered (and (export-path server head port #:sign? sign?) (loop tail)))))) +(define-operation (query-failed-paths) + "Return the list of store items for which a build failure is cached. + +The result is always the empty list unless the daemon was started with +'--cache-failures'." + store-path-list) + +(define-operation (clear-failed-paths (store-path-list items)) + "Remove ITEMS from the list of cached build failures. + +This makes sense only when the daemon was started with '--cache-failures'." + boolean) + (define* (register-path path #:key (references '()) deriver prefix state-directory) -- cgit v1.2.3