[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/16: reconfigure: Use let* from srfi-71.
From: |
guix-commits |
Subject: |
09/16: reconfigure: Use let* from srfi-71. |
Date: |
Sat, 12 Aug 2023 17:21:34 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 9be28375cf6d900e075b470412d629ddbd8710c0
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Wed Aug 9 11:28:34 2023 +0200
reconfigure: Use let* from srfi-71.
* guix/scripts/system/reconfigure.scm (upgrade-shepherd-services): Merge
'let' + 'let*' in just 'let*'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/scripts/system/reconfigure.scm | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/guix/scripts/system/reconfigure.scm
b/guix/scripts/system/reconfigure.scm
index 9948df0ca6..ff6242ffb4 100644
--- a/guix/scripts/system/reconfigure.scm
+++ b/guix/scripts/system/reconfigure.scm
@@ -186,22 +186,22 @@ services as defined by OS."
#:target-type shepherd-root-service-type))))
(mlet* %store-monad ((live-services (running-services eval)))
- (let ((to-unload to-restart
- (shepherd-service-upgrade live-services target-services)))
- (let* ((to-unload (map live-service-canonical-name to-unload))
- (to-restart (map shepherd-service-canonical-name to-restart))
- (running (map live-service-canonical-name
- (filter live-service-running live-services)))
- (to-start (lset-difference eqv?
- (map shepherd-service-canonical-name
- target-services)
- running))
- (service-files (map shepherd-service-file target-services)))
- (eval #~(parameterize ((current-warning-port (%make-void-port "w")))
- (primitive-load #$(upgrade-services-program service-files
- to-start
- to-unload
-
to-restart))))))))
+ (let* ((to-unload to-restart
+ (shepherd-service-upgrade live-services target-services))
+ (to-unload (map live-service-canonical-name to-unload))
+ (to-restart (map shepherd-service-canonical-name to-restart))
+ (running (map live-service-canonical-name
+ (filter live-service-running live-services)))
+ (to-start (lset-difference eqv?
+ (map shepherd-service-canonical-name
+ target-services)
+ running))
+ (service-files (map shepherd-service-file target-services)))
+ (eval #~(parameterize ((current-warning-port (%make-void-port "w")))
+ (primitive-load #$(upgrade-services-program service-files
+ to-start
+ to-unload
+ to-restart)))))))
;;;
- branch master updated (eb25c2b3e2 -> d0a2b422e0), guix-commits, 2023/08/12
- 08/16: gnu: lfs-s3: Update to 0.1.5., guix-commits, 2023/08/12
- 05/16: teams: Add myself to 'installer' and leave 'embedded'., guix-commits, 2023/08/12
- 10/16: gnu: Add emacs-math-preview., guix-commits, 2023/08/12
- 04/16: gnu: Add xorgxrdp., guix-commits, 2023/08/12
- 06/16: platform: Add powerpc64-linux., guix-commits, 2023/08/12
- 07/16: gnu: guile-smc: Update to 0.6.1., guix-commits, 2023/08/12
- 09/16: reconfigure: Use let* from srfi-71.,
guix-commits <=
- 14/16: gnu: gpodder: Update to 3.11.1., guix-commits, 2023/08/12
- 02/16: gnu: uwufetch: Add and use missing inputs., guix-commits, 2023/08/12
- 01/16: gnu: ntp: Fix cross-compilation inputs., guix-commits, 2023/08/12
- 03/16: gnu: Add xrdp., guix-commits, 2023/08/12
- 11/16: gnu: conda: Add missing dependency., guix-commits, 2023/08/12
- 13/16: gnu: scsh: Fix version number and use gexps., guix-commits, 2023/08/12
- 16/16: gnu: Add ulauncher., guix-commits, 2023/08/12
- 15/16: gnu: loksh: Update to 7.3., guix-commits, 2023/08/12
- 12/16: gnu: Add cage., guix-commits, 2023/08/12