From patchwork Sat Mar 22 17:00:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomas Volf <~@wolfsden.cz> X-Patchwork-Id: 40621 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 32F8F27BBEA; Sat, 22 Mar 2025 17:02:01 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_ALL,DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A65F427BBE2 for ; Sat, 22 Mar 2025 17:02:00 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tw2Ds-00061B-03; Sat, 22 Mar 2025 13:01:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tw2DX-0005ya-RC for guix-patches@gnu.org; Sat, 22 Mar 2025 13:01:07 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tw2DX-00058x-HY for guix-patches@gnu.org; Sat, 22 Mar 2025 13:01:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Y16FMgJnONzDsaGemVYFNW11utUtDpHP7Xewvp/P4oY=; b=oV4dIusAY7Y+Wb2Yqg52po0rN94t9dBQKvC4wxu8mp/Mo07gV4N5GnqIToDOGAGjBeq7FVupDsAa11bRDl3MjAZxJteHlof/8/BLAPYSGwgdioBqSjiaLb/qNWUQK92WbPAM+MkSO+VsoeAMktHZZMrw60mMxRJNbwhBVjuuiZuRDZp0KWUYJD0Ks96fKx9p50T4kvJePOEt2IR3I/CrVbrOZu7shvGwE1fv8LicAZKFyqUmcXaJ+K4IbbEOzHLbCG82EClpm+mo918n7vkNzN37B4WBqhaG3IjjAsjkGpw0qA1y43b0pagtmyenzMgGkPKvxamGBQotyzeLOBOhWw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tw2DX-0006dY-E0 for guix-patches@gnu.org; Sat, 22 Mar 2025 13:01:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77186] [PATCH 01/13] services: gitolite-rc-file-compiler: Switch to match-record. Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 22 Mar 2025 17:01:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77186 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77186@debbugs.gnu.org Cc: Tomas Volf <~@wolfsden.cz> Received: via spool by 77186-submit@debbugs.gnu.org id=B77186.174266284925458 (code B ref 77186); Sat, 22 Mar 2025 17:01:03 +0000 Received: (at 77186) by debbugs.gnu.org; 22 Mar 2025 17:00:49 +0000 Received: from localhost ([127.0.0.1]:45084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tw2DH-0006cJ-VR for submit@debbugs.gnu.org; Sat, 22 Mar 2025 13:00:48 -0400 Received: from wolfsden.cz ([37.205.8.62]:44860) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tw2DB-0006ab-G3 for 77186@debbugs.gnu.org; Sat, 22 Mar 2025 13:00:43 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 59722380494; Sat, 22 Mar 2025 17:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1742662839; bh=A3YQSqoXt2ioJxHjsd1Re/ReemXnAVGjJ1UiKrT74q8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LYU7rqsYJRLe92E7pBy0aEhxh5/NT4/2AKwzIw8MqtXp34z/CtJ+HPanyLwUs9jOE pPjyzFLBe1lS2t4YRIqrsPSIiTPPaXHb+FxPachqn1P6YSkQ7Mg1AIs5qBuOMXG03q zzCxMDcgMSlmlQyjiPU03RzN/zPGp0svaEvLeKORkKmMb9PnX+snRIs6SthFPZ5SB6 ydaNtmeQrZaAOJ+ap6b5eKGecUSiC8fY3FdRvbVPwT3pNWUxNRQ4F7J8H4wlwfUI8+ +/QKKjPf+ZsBB0DMI1BVaLMCdBNTgnGnBA4H1jUErO/x/XrL3JnaUsYd56RmU1TlfN OO4ETYdR3ZC9ds1eDdnHktlnQlKFxgTrLghTjkSGIp9mklih5L6Li9sQbXLgW2hee4 uJXR5zWpz03XD1BMPs7+qMmVd9ZDP0X5/uvfpOmvtGC5lwtvtKiwChTcxVTeLNcXQA Z+XKQpL1IP24ZKfn7cL1fG/AehUHhC+A+hLgJ38ft08r5YftdQwccrsicrZGtc/BKL mRmyY8K6qk/c4CBbKGw/u8GG7ZpMAVE1dbqT3XKesyO7FzRh5rkS1oZRnBRVCo9jar 2YYVWMobwYiUzpj7i9ZZb3WcGDMgsRSPh7B/AlVUixB84eLhW/eTtQTw/Q436ZYT8K tpHimfawHGWLWCgSiXBnmYSE= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id ED8F438070B; Sat, 22 Mar 2025 17:00:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1742662839; bh=A3YQSqoXt2ioJxHjsd1Re/ReemXnAVGjJ1UiKrT74q8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LYU7rqsYJRLe92E7pBy0aEhxh5/NT4/2AKwzIw8MqtXp34z/CtJ+HPanyLwUs9jOE pPjyzFLBe1lS2t4YRIqrsPSIiTPPaXHb+FxPachqn1P6YSkQ7Mg1AIs5qBuOMXG03q zzCxMDcgMSlmlQyjiPU03RzN/zPGp0svaEvLeKORkKmMb9PnX+snRIs6SthFPZ5SB6 ydaNtmeQrZaAOJ+ap6b5eKGecUSiC8fY3FdRvbVPwT3pNWUxNRQ4F7J8H4wlwfUI8+ +/QKKjPf+ZsBB0DMI1BVaLMCdBNTgnGnBA4H1jUErO/x/XrL3JnaUsYd56RmU1TlfN OO4ETYdR3ZC9ds1eDdnHktlnQlKFxgTrLghTjkSGIp9mklih5L6Li9sQbXLgW2hee4 uJXR5zWpz03XD1BMPs7+qMmVd9ZDP0X5/uvfpOmvtGC5lwtvtKiwChTcxVTeLNcXQA Z+XKQpL1IP24ZKfn7cL1fG/AehUHhC+A+hLgJ38ft08r5YftdQwccrsicrZGtc/BKL mRmyY8K6qk/c4CBbKGw/u8GG7ZpMAVE1dbqT3XKesyO7FzRh5rkS1oZRnBRVCo9jar 2YYVWMobwYiUzpj7i9ZZb3WcGDMgsRSPh7B/AlVUixB84eLhW/eTtQTw/Q436ZYT8K tpHimfawHGWLWCgSiXBnmYSE= From: Tomas Volf <~@wolfsden.cz> Date: Sat, 22 Mar 2025 18:00:21 +0100 Message-ID: <9c1e4968f7f9e7faaa80212e3b08dd0e924b71df.1742661305.git.~@wolfsden.cz> X-Mailer: git-send-email 2.48.1 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/services/version-control.scm (gitolite-rc-file-compiler): Use match-record instead of match with $. Change-Id: Ia2f4985e921aee5f8859d1858f7c186b707d7a36 --- gnu/services/version-control.scm | 54 ++++++++++++++++---------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm index 06b6ff224d..e73833713e 100644 --- a/gnu/services/version-control.scm +++ b/gnu/services/version-control.scm @@ -267,33 +267,33 @@ (define-record-type* (define-gexp-compiler (gitolite-rc-file-compiler (file ) system target) - (match file - (($ umask local-code unsafe-pattern git-config-keys roles enable) - (apply text-file* "gitolite.rc" - `("%RC = (\n" - " UMASK => " ,(format #f "~4,'0o" umask) ",\n" - " GIT_CONFIG_KEYS => '" ,git-config-keys "',\n" - ,(if local-code - (simple-format #f " LOCAL_CODE => \"~A\",\n" local-code) - "") - " ROLES => {\n" - ,@(map (match-lambda - ((role . value) - (simple-format #f " ~A => ~A,\n" role value))) - roles) - " },\n" - "\n" - " ENABLE => [\n" - ,@(map (lambda (value) - (simple-format #f " '~A',\n" value)) - enable) - " ],\n" - ");\n" - "\n" - ,(if unsafe-pattern - (string-append "$UNSAFE_PATT = qr(" unsafe-pattern ");") - "") - "1;\n"))))) + (match-record file + (umask local-code unsafe-pattern git-config-keys roles enable) + (apply text-file* "gitolite.rc" + `("%RC = (\n" + " UMASK => " ,(format #f "~4,'0o" umask) ",\n" + " GIT_CONFIG_KEYS => '" ,git-config-keys "',\n" + ,(if local-code + (simple-format #f " LOCAL_CODE => \"~A\",\n" local-code) + "") + " ROLES => {\n" + ,@(map (match-lambda + ((role . value) + (simple-format #f " ~A => ~A,\n" role value))) + roles) + " },\n" + "\n" + " ENABLE => [\n" + ,@(map (lambda (value) + (simple-format #f " '~A',\n" value)) + enable) + " ],\n" + ");\n" + "\n" + ,(if unsafe-pattern + (string-append "$UNSAFE_PATT = qr(" unsafe-pattern ");") + "") + "1;\n")))) (define-record-type* gitolite-configuration make-gitolite-configuration