mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
store: 'run-with-store' has a #:target parameter.
* guix/store.scm (run-with-store): Add #:target and honor it.
This commit is contained in:
parent
bbb1246fd8
commit
45bba47510
1 changed files with 3 additions and 2 deletions
|
@ -1429,7 +1429,8 @@ (define %guile-for-build
|
|||
(define* (run-with-store store mval
|
||||
#:key
|
||||
(guile-for-build (%guile-for-build))
|
||||
(system (%current-system)))
|
||||
(system (%current-system))
|
||||
(target #f))
|
||||
"Run MVAL, a monadic value in the store monad, in STORE, an open store
|
||||
connection, and return the result."
|
||||
;; Initialize the dynamic bindings here to avoid bad surprises. The
|
||||
|
@ -1437,7 +1438,7 @@ (define* (run-with-store store mval
|
|||
;; bind-time and not at call time, which can be disconcerting.
|
||||
(parameterize ((%guile-for-build guile-for-build)
|
||||
(%current-system system)
|
||||
(%current-target-system #f))
|
||||
(%current-target-system target))
|
||||
(call-with-values (lambda ()
|
||||
(run-with-state mval store))
|
||||
(lambda (result store)
|
||||
|
|
Loading…
Reference in a new issue