From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6IqeFpF/G2ItXwEAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 14:41:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iFFsD5F/G2LimAAAG6o9tA (envelope-from ) for ; Sun, 27 Feb 2022 14:41:37 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B642238E4A for ; Sun, 27 Feb 2022 14:41:36 +0100 (CET) Received: from localhost ([::1]:33024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOJnr-0001Xn-BH for larch@yhetil.org; Sun, 27 Feb 2022 08:41:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOJnL-0001Wk-0q for guix-patches@gnu.org; Sun, 27 Feb 2022 08:41:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34967) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOJnK-0007gH-P3 for guix-patches@gnu.org; Sun, 27 Feb 2022 08:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOJnK-0004R0-6z; Sun, 27 Feb 2022 08:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54180] [PATCH 00/12] Home: Clarify and better test symlink-manager.scm Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: andrew@trop.in, go.wigust@gmail.com, public@yoctocell.xyz, guix-patches@gnu.org Resent-Date: Sun, 27 Feb 2022 13:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54180@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Andrew Tropin , Oleg Pykhalov , Xinglu Chen X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andrew Tropin , Oleg Pykhalov , Xinglu Chen Received: via spool by submit@debbugs.gnu.org id=B.164596924217001 (code B ref -1); Sun, 27 Feb 2022 13:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2022 13:40:42 +0000 Received: from localhost ([127.0.0.1]:57096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJmz-0004Q9-WB for submit@debbugs.gnu.org; Sun, 27 Feb 2022 08:40:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:51654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJmj-0004Pg-Tu for submit@debbugs.gnu.org; Sun, 27 Feb 2022 08:40:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOJmj-0001RD-6X for guix-patches@gnu.org; Sun, 27 Feb 2022 08:40:25 -0500 Received: from [2001:470:142:3::e] (port=50120 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOJmi-0007WG-UV; Sun, 27 Feb 2022 08:40:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=Zr72DFM1jTnl6CB3px1IyjUtYfkp0957xa/Hz5Pjf1s=; b=VYS9WRL0mD5a2h DI2z3j1EfcVgLEoAfFuJmvuJXBCpZtcqvkhMsCkRCMvTlrBWPZp8oICmZmUXL3DfS/pewraVsHcpL DAC1S5bHPMx9/M0Zg/OFD1AkKvZDPhi7mXF1NZIE8MVqUerpdPfKi4I0IS6URnRszLOW8TrhWB5fW KWhR6orOcSd0iVMm03kbsVlLtpBPsEyy2pgOqAigMBE5PYUHD7J7lFBbHbEsDvTFf3Ug5RYCowvqP a64AM0v/6ViaT7+kyIrXJySea4ZWIyyjlBCPdqnay5i7nMqJzubZYxPRtwru8pZMqMk9CuWtY/A6/ XL+l0tOkey6gwByWT69g==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55802 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOJmg-00068n-Q8; Sun, 27 Feb 2022 08:40:23 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sun, 27 Feb 2022 14:40:06 +0100 Message-Id: <20220227134006.9860-1-ludo@gnu.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645969297; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Zr72DFM1jTnl6CB3px1IyjUtYfkp0957xa/Hz5Pjf1s=; b=okrE5kwTF/sBmjaYY/kZR9falKKxVe3jQ2Utxf3Byfuy3tBhA5G5oUqHQmD3+GHuQP1Y6F CJPygBRwkNbX34R5rsHqyDbYFWZKiDne0gvm+OyreJHY8Epo+wl0k+ZB9JSCqQz+29MeLw ExtUoAtXw3APwruq4E/BFmypcX1iO+lueDzHjEXG2Y2kEOXhSmJe4atqq3hPczKQTc56PW ntwL0pMV8LlrNk+cypT0bbLRJDA5sY7d2wleHfbGEl4mfGrQiN6EtgNws+zM4ZvTtUcyTT QdrdhNmI5H33+x1tuIR9TQHxhZ81akFe+eMZ8bc7esdKd/FiBUSmDOsULv8FeA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645969297; a=rsa-sha256; cv=none; b=GYSMMnS2+633B5jcyMjsm9zWMfiy7lp+NuRUZyA6ybMlxSczjj7yIiDy5MTKRW5ayqdMuO Zagk9UBRAw7/oLIAoMv0YRHpUcY6aURshyxOvRtsorGIFdHh3r7DVNCpc8/wB7TFgUmwGa f4uSx3abCsZpmhgpIyQYQo8PuSN0JU0bZRSj5JfuvhZ45kePrAYKIxqfexGzFgiVr1n0wp 1ZYsd0wz3//9rQXSqrN89TCL9pz8ms6kQlEPBjbbkQBiWXjLDbmbjy2/0xLfPh7cRuAZns 8fTR+y+jh1r3J4Pxp2rVzAHlfcYh5FhOqrL8qTxM+04+gdOH5ZPVWZ0Iu5jN0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VYS9WRL0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VYS9WRL0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B642238E4A X-Spam-Score: -1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: gkUmKs6xwEHt Hello Guix! This patch set aims to increase test coverage for ‘guix home reconfigure’, to make symlink-manager.scm IMO easier to follow, and to have it more closely follow the project’s conventions. Functionality is unchanged. Thoughts? Thanks, Ludo’. Ludovic Courtès (12): home: symlink-manager: Clarify module imports. home: symlink-manager: Move helper procedures as top-level defines. home: symlink-manager: Use 'for-each' when used for effects. home: symlink-manager: Use 'file-is-directory?'. home: symlink-manager: Remove 'empty-directory?' and avoid TOCTTOU race. home: symlink-manager: Avoid extra 'lstat' call. tests: Make sure 'guix home reconfigure' backs up files. tests: Simplify use of 'local-file' in 'tests/guix-home.sh'. tests: Check 'guix home reconfigure' for a second generation. home: symlink-manager: 'cleanup-symlinks' uses 'file-system-fold'. home: symlink-manager: 'create-symlinks' uses 'file-system-fold'. home: symlink-manager: Rename "path" to "file" where appropriate. gnu/home/services/symlink-manager.scm | 355 ++++++++++++-------------- tests/guix-home.sh | 44 +++- 2 files changed, 198 insertions(+), 201 deletions(-) base-commit: 33ce3f1c866231a3015411fdce18a3e72649e2f6 -- 2.34.0