mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
Rename two remote variables confusingly named 'generations'.
Both refer to data sets returned from the remote expression, and one of them shadowed an element of itself. * gnu/machine/ssh.scm (machine->boot-alternatives): Rename generations to remote-results. Change-Id: Ibd8a3036126d9da1215cfc191884c0f54df637df
This commit is contained in:
parent
02b0324822
commit
b13726dd98
1 changed files with 5 additions and 4 deletions
|
@ -451,10 +451,11 @@ (define (read-file path)
|
||||||
(read-file boot-parameters-path))))
|
(read-file boot-parameters-path))))
|
||||||
(reverse (generation-numbers %system-profile)))))))
|
(reverse (generation-numbers %system-profile)))))))
|
||||||
|
|
||||||
(mlet* %store-monad ((generations (machine-remote-eval machine remote-exp)))
|
(mlet %store-monad
|
||||||
|
((remote-results (machine-remote-eval machine remote-exp)))
|
||||||
(return
|
(return
|
||||||
(map (lambda (generation)
|
(map (lambda (remote-result)
|
||||||
(match generation
|
(match remote-result
|
||||||
((generation system-path epoch serialized-params)
|
((generation system-path epoch serialized-params)
|
||||||
(let* ((params (call-with-input-string serialized-params
|
(let* ((params (call-with-input-string serialized-params
|
||||||
read-boot-parameters))
|
read-boot-parameters))
|
||||||
|
@ -467,7 +468,7 @@ (define (read-file path)
|
||||||
(kernel-arguments
|
(kernel-arguments
|
||||||
(append (bootable-kernel-arguments system-path root version)
|
(append (bootable-kernel-arguments system-path root version)
|
||||||
(boot-parameters-kernel-arguments params))))))))
|
(boot-parameters-kernel-arguments params))))))))
|
||||||
generations))))
|
remote-results))))
|
||||||
|
|
||||||
(define-syntax-rule (with-roll-back should-roll-back? mbody ...)
|
(define-syntax-rule (with-roll-back should-roll-back? mbody ...)
|
||||||
"Catch exceptions that arise when binding MBODY, a monadic expression in
|
"Catch exceptions that arise when binding MBODY, a monadic expression in
|
||||||
|
|
Loading…
Reference in a new issue