[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/16: home: symlink-manager: Use 'for-each' when used for effects.
From: |
guix-commits |
Subject: |
07/16: home: symlink-manager: Use 'for-each' when used for effects. |
Date: |
Thu, 10 Mar 2022 05:43:53 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit cf803b71c7c1f9486a5841c550361a5cb3d94f99
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Feb 18 17:00:46 2022 +0100
home: symlink-manager: Use 'for-each' when used for effects.
* gnu/home/services/symlink-manager.scm
(update-symlinks-script)[cleanup-symlinks]
[create-symlinks]: Use 'for-each' instead of 'map'.
---
gnu/home/services/symlink-manager.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/home/services/symlink-manager.scm
b/gnu/home/services/symlink-manager.scm
index 25470209d1..a6344c808f 100644
--- a/gnu/home/services/symlink-manager.scm
+++ b/gnu/home/services/symlink-manager.scm
@@ -125,7 +125,7 @@ appear only after all nested items already listed."
(display
(G_
"Cleaning up symlinks from previous home-environment.\n\n"))
- (map
+ (for-each
(match-lambda
(('dir . ".")
(display (G_ "Cleanup finished.\n\n")))
@@ -168,7 +168,7 @@ appear only after all nested items already listed."
(readlink (string-append new-files-path "/" path)))
(let ((to-create ((file-tree-traverse #t) new-tree)))
- (map
+ (for-each
(match-lambda
(('dir . ".")
(display
- branch master updated (cceb5344ae -> 2a55f99aff), guix-commits, 2022/03/10
- 03/16: gnu: gnome-sudoku: Add missing dependency on Python., guix-commits, 2022/03/10
- 04/16: gnu: gnome-sudoku: Remove input labels., guix-commits, 2022/03/10
- 05/16: home: symlink-manager: Clarify module imports., guix-commits, 2022/03/10
- 09/16: home: symlink-manager: Remove 'empty-directory?' and avoid TOCTTOU race., guix-commits, 2022/03/10
- 02/16: gnu: gnome-arcade: Update to 0.240., guix-commits, 2022/03/10
- 08/16: home: symlink-manager: Use 'file-is-directory?'., guix-commits, 2022/03/10
- 16/16: home: symlink-manager: Rename "path" to "file" where appropriate., guix-commits, 2022/03/10
- 07/16: home: symlink-manager: Use 'for-each' when used for effects.,
guix-commits <=
- 01/16: maint: 'assert-binaries-available' only checks ci.guix.gnu.org., guix-commits, 2022/03/10
- 06/16: home: symlink-manager: Move helper procedures as top-level defines., guix-commits, 2022/03/10
- 11/16: tests: Make sure 'guix home reconfigure' backs up files., guix-commits, 2022/03/10
- 13/16: tests: Check 'guix home reconfigure' for a second generation., guix-commits, 2022/03/10
- 12/16: tests: Simplify use of 'local-file' in 'tests/guix-home.sh'., guix-commits, 2022/03/10
- 14/16: home: symlink-manager: 'cleanup-symlinks' uses 'file-system-fold'., guix-commits, 2022/03/10
- 10/16: home: symlink-manager: Avoid extra 'lstat' call., guix-commits, 2022/03/10
- 15/16: home: symlink-manager: 'create-symlinks' uses 'file-system-fold'., guix-commits, 2022/03/10