guix: store: Add ensure-path.

* guix/store.scm (ensure-path): New procedure.
This commit is contained in:
Mathieu Othacehe 2020-11-04 14:39:40 +01:00
parent 6f78fe353e
commit 2a7e1121d8
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,7 @@
build
query-failed-paths
clear-failed-paths
ensure-path
add-temp-root
add-indirect-root
add-permanent-root
@ -1397,6 +1398,11 @@ When a handler is installed with 'with-build-handler', it is called any time
(message "unsupported build mode")
(status 1))))))))))))
(define-operation (ensure-path (store-path path))
"Make PATH a temporary root for the duration of the current session.
Return #t."
boolean)
(define-operation (add-temp-root (store-path path))
"Make PATH a temporary root for the duration of the current session.
Return #t."