store: Add `add-temp-root'.

* guix/store.scm (add-temp-root): New procedure.
master
Ludovic Courtès 2012-12-09 23:50:17 +01:00
parent 2af7e4a373
commit d3648e0118
1 changed files with 5 additions and 0 deletions

View File

@ -424,6 +424,11 @@ FIXED? is for backward compatibility with old Nix versions and must be #t."
Return #t on success."
boolean)
(define-operation (add-temp-root (store-path path))
"Make PATH a temporary root for the duration of the current session.
Return #t."
boolean)
(define-operation (add-indirect-root (string file-name))
"Make FILE-NAME an indirect root for the garbage collector; FILE-NAME
can be anywhere on the file system, but it must be an absolute file