From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uNY5HtSfG2KH0gAAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 16:59:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +CvGGtSfG2Jw+QAAauVa8A (envelope-from ) for ; Sun, 27 Feb 2022 16:59:16 +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 45E2B38686 for ; Sun, 27 Feb 2022 16:59:16 +0100 (CET) Received: from localhost ([::1]:43656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOLx5-00029v-3x for larch@yhetil.org; Sun, 27 Feb 2022 10:59:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOLws-00026I-LB for guix-patches@gnu.org; Sun, 27 Feb 2022 10:59:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOLws-0003yU-CN for guix-patches@gnu.org; Sun, 27 Feb 2022 10:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOLws-0008Rw-CX for guix-patches@gnu.org; Sun, 27 Feb 2022 10:59:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54180] [PATCH 02/12] home: symlink-manager: Move helper procedures as top-level defines. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Feb 2022 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 54180@debbugs.gnu.org Received: via spool by 54180-submit@debbugs.gnu.org id=B54180.164597749332379 (code B ref 54180); Sun, 27 Feb 2022 15:59:02 +0000 Received: (at 54180) by debbugs.gnu.org; 27 Feb 2022 15:58:13 +0000 Received: from localhost ([127.0.0.1]:58990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOLw4-0008QB-Vm for submit@debbugs.gnu.org; Sun, 27 Feb 2022 10:58:13 -0500 Received: from xavier.telenet-ops.be ([195.130.132.52]:55554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOLw3-0008Q3-90 for 54180@debbugs.gnu.org; Sun, 27 Feb 2022 10:58:11 -0500 Received: from [192.168.158.254] ([188.188.52.46]) by xavier.telenet-ops.be with bizsmtp id 0Fy92700S0zovbQ01FyAww; Sun, 27 Feb 2022 16:58:10 +0100 Message-ID: <66bb9a617542057fe6c536631927d94c530dc173.camel@telenet.be> From: Maxime Devos Date: Sun, 27 Feb 2022 16:58:09 +0100 In-Reply-To: <20220227135342.10296-2-ludo@gnu.org> References: <20220227135342.10296-1-ludo@gnu.org> <20220227135342.10296-2-ludo@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-OdBO8BWLSFlM1hg5/I1P" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1645977490; bh=Kz1nN0xxDcshogZXUKaz8PNG3d7J0Qdu1KmDnzHdl6g=; h=Subject:From:To:Date:In-Reply-To:References; b=Ej4pBRx4zfHQodjt2WhFfmgE0LCZg73JYVieq9T/Fwtes/c4BVGLSCS6N2V1OkS0D uPWXM6pWF2630Nqz8mzIVXDZAizzaB+11TvGUIktxE9xW8colQe96jMxrn/fu7W2l8 airUtodb67C7GA6+ej0Y33wZ1ooTjACPtZo6LrJ/Dq5p+bvV+/SJjvtP96zYF6CKG+ 10Yv4XUOKDTJ2kyLoJ04t4S+HUjQAmgFnc/Gr6D8Ot9vUEQbdhjY7TR2tGPqbxwu4D BXW1aYbf/FsKF1SYTJBf3iY+KRTAJdRilEe/7DrO2sl1w2b3chx7Yr+K0GHIwq9r74 34I46yR+x8v9w== 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=1645977556; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Kz1nN0xxDcshogZXUKaz8PNG3d7J0Qdu1KmDnzHdl6g=; b=JQMUtDLiIX6T3A2vYEJ00hv+n0SiFGxqESYlTC6NR450TG64FHnkEN6ge2kpWTkoaNmBAZ vJRNQe09BpJPoi8Eu4u/VUGbzWmov1WWv3+FECxZ5ggvdalDNB/DNcCOECOiAM9BmEuX3E DFcP9DUBH2dcYAv6kh+f4BfGfQmrstqk87aOQrm+EpdcKxM0uuewlnzvCL76F01yOd/5CZ iwsnLMaOqYvl57AksBnWthNgrDhevW01uwr7yx1Xr2EsAHFGEVkLI66vbD2rNrA07sEuXW rcR4j9tKBiHc8FOwyMNAy+lLtdJu34j/rcArWalvogW6doZWLQVakvObwE/oeg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645977556; a=rsa-sha256; cv=none; b=dttO+3KdkSMNcfSpe+D9XBZI4l6qz6ED+eqjQSdJteC5cJSXgsKW5cL8zEgrP7lmEiRisq +75YJJMGyuzA9QiZcu8QvmDrQ/qFSAsxsyweGQpzBim64TMs5A5VIn1kpcfCMH9TyTkWOM c62NiiqSjq9rUipbPRLEHSTdsOfKcOWfcnGJOcrYtAGFK96kTgecHhWWnBebxVneACpWzD wWiJmec+mTj6tTE0+4wf1pb/HI4eBTXkClwXn3F2ePGFSlK65I4C8/pWk47oIjSDQSbvEf IRrjQJI/jOxT0kk2Zz1C1I8e0wToi6bn3KEoOncOTA8ALteTRUAk0QwCVNfhwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Ej4pBRx4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: 2.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Ej4pBRx4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: 45E2B38686 X-Spam-Score: 2.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: uuZF9OCYuABc --=-OdBO8BWLSFlM1hg5/I1P Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op zo 27-02-2022 om 14:53 [+0100]: > (file-exists? (get-target-path path)) > [... other uses of file-exists? ...] 'file-exists?' does not simply check whether the file exists. E.g., when there is some permission error, then it returns #false. I think that in case of an permission error, it would best be reported to the user, so I think a variant of 'file-exists?' may be needed. Greetings, Maxime. --=-OdBO8BWLSFlM1hg5/I1P Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYhufkRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vhKAQCO8mJ4cSzAmzZVN2RmVm7bmSpG CZNdU1OdgDo2Q7r5bAD8DtN8h6+aiRKMFVxmqIwTgkqpCo1N6hLUowDqrc+h8Qs= =Euq0 -----END PGP SIGNATURE----- --=-OdBO8BWLSFlM1hg5/I1P--