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
|
@ -1429,7 +1429,8 @@ where FILE is the entry's absolute file name and STAT is the result of
|
||||||
(define* (run-with-store store mval
|
(define* (run-with-store store mval
|
||||||
#:key
|
#:key
|
||||||
(guile-for-build (%guile-for-build))
|
(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
|
"Run MVAL, a monadic value in the store monad, in STORE, an open store
|
||||||
connection, and return the result."
|
connection, and return the result."
|
||||||
;; Initialize the dynamic bindings here to avoid bad surprises. The
|
;; Initialize the dynamic bindings here to avoid bad surprises. The
|
||||||
|
@ -1437,7 +1438,7 @@ connection, and return the result."
|
||||||
;; bind-time and not at call time, which can be disconcerting.
|
;; bind-time and not at call time, which can be disconcerting.
|
||||||
(parameterize ((%guile-for-build guile-for-build)
|
(parameterize ((%guile-for-build guile-for-build)
|
||||||
(%current-system system)
|
(%current-system system)
|
||||||
(%current-target-system #f))
|
(%current-target-system target))
|
||||||
(call-with-values (lambda ()
|
(call-with-values (lambda ()
|
||||||
(run-with-state mval store))
|
(run-with-state mval store))
|
||||||
(lambda (result store)
|
(lambda (result store)
|
||||||
|
|
Loading…
Reference in New Issue