From patchwork Sat Mar 22 17:00:28 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: 40625 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 C818727BBE9; Sat, 22 Mar 2025 17:02:19 +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=unavailable 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 ABD1F27BBE2 for ; Sat, 22 Mar 2025 17:02:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tw2Ee-0006NK-6Z; Sat, 22 Mar 2025 13:02:12 -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 1tw2EW-0006Hu-3h for guix-patches@gnu.org; Sat, 22 Mar 2025 13:02:04 -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 1tw2EV-0005D9-PN for guix-patches@gnu.org; Sat, 22 Mar 2025 13:02: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=K8Dda70cM0L3A7B+Fa8HfB6CySOl0dZLyysr7ivqMqQ=; b=oKNH97+DErmYxqGvOF1MLe8rN+Y/qWdFBckIqZPBff+za/uTmq7dS4WyBbJ9ax6Zi3qjXSyvcTYeujmRsWmC34yD+rmNhl6fUDFUSmtQBNfXZaVPuf69lZZLTx99J1TD+HT6BVNnvYgsxpfD25zw37jiWHFXVRsANNvtCLMa0MBqF6Dt5sa2SWAxVMgj5UXi9cWBM+Xf94UtcLO2vmjsdeKtIz+GLdhklMGX6vM0AtBm7SvtowXAhoLZdeanpQaebMj0IpgHeQP/HTYtCwERYHIaaVimlNLhi5yFq1/jj0zruzQkHzD2bPmKv8BwK2jWgFO8RtLcAp0sy2XKayjYhA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tw2EV-0006h7-JO for guix-patches@gnu.org; Sat, 22 Mar 2025 13:02:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77186] [PATCH 08/13] services: gitolite-accounts: Convert 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:02: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.174266286925565 (code B ref 77186); Sat, 22 Mar 2025 17:02:03 +0000 Received: (at 77186) by debbugs.gnu.org; 22 Mar 2025 17:01:09 +0000 Received: from localhost ([127.0.0.1]:45100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tw2Dc-0006eE-HA for submit@debbugs.gnu.org; Sat, 22 Mar 2025 13:01:08 -0400 Received: from wolfsden.cz ([37.205.8.62]:44916) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tw2DE-0006b1-08 for 77186@debbugs.gnu.org; Sat, 22 Mar 2025 13:00:44 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id DE0403800B2; Sat, 22 Mar 2025 17:00:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1742662842; bh=bXUlsUc261gd1efYjrPk2rAyfHuaOVVV5Y5LGkGQByc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UU62AX7lawsqefGjKBUiqpLBMWR7n8qu2CF/JvuZvL8VXxgxw+XWnEVhRyaWAgq2Q FWm+ObikGdQvR3hA3N6c7iZQvYtVaMEA6NUa+lmxInq3SPStPTr9DwvW9MGKVu6QB9 mY9eBjfwUXFIvtjI8AxfMTxqMhQCIpqRfa/YuEw4m71D2Dfspky2OWY7NQ43Jbo+nI GuhgEoubT9gHgkIvTvBLjZ1xpXX7buHYZSx0HKvTmjpBNAS/i5Vt4owY0NDbUAqgOj xQ70F1XlYqSbJtdrXqPcAb782OKZsFrQYYUolOILCfBWAN8GVnzPcyUBRETEI+jCjy qqSf1yKbVDmzgdzy2i03u2w5mN2uYeBcxBIPrUcBREoIyFqYQYXMGLlrAGtnOKQQw8 x9vGFNJc4Rs6hJWkCEHuPck2v7daqCBFTHqf/Buwu64nuJIWtwf7D1IJS8w4SiFWH6 SLvVfg2FqL5yg1feh50Fa10ZGC3CnVq3Y7YFJlonIz/fRU9wxrPgAGAd/IRzaZo652 bpOpuF/8TP7dGju6X2QngeOlvUrqfLnKASNBM2w5s1dC2zyrmFZhIZ21ZjAghFtpPt TuWlHXabEr6Wz0fzj37UKx/CmYUjjRf2i1l1Iai0L4qyTRwHrmE2EWSdk71UWAj+Xe UDy47SBMRO2+XckrJWZZqero= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 869E338062D; Sat, 22 Mar 2025 17:00:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1742662842; bh=bXUlsUc261gd1efYjrPk2rAyfHuaOVVV5Y5LGkGQByc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UU62AX7lawsqefGjKBUiqpLBMWR7n8qu2CF/JvuZvL8VXxgxw+XWnEVhRyaWAgq2Q FWm+ObikGdQvR3hA3N6c7iZQvYtVaMEA6NUa+lmxInq3SPStPTr9DwvW9MGKVu6QB9 mY9eBjfwUXFIvtjI8AxfMTxqMhQCIpqRfa/YuEw4m71D2Dfspky2OWY7NQ43Jbo+nI GuhgEoubT9gHgkIvTvBLjZ1xpXX7buHYZSx0HKvTmjpBNAS/i5Vt4owY0NDbUAqgOj xQ70F1XlYqSbJtdrXqPcAb782OKZsFrQYYUolOILCfBWAN8GVnzPcyUBRETEI+jCjy qqSf1yKbVDmzgdzy2i03u2w5mN2uYeBcxBIPrUcBREoIyFqYQYXMGLlrAGtnOKQQw8 x9vGFNJc4Rs6hJWkCEHuPck2v7daqCBFTHqf/Buwu64nuJIWtwf7D1IJS8w4SiFWH6 SLvVfg2FqL5yg1feh50Fa10ZGC3CnVq3Y7YFJlonIz/fRU9wxrPgAGAd/IRzaZo652 bpOpuF/8TP7dGju6X2QngeOlvUrqfLnKASNBM2w5s1dC2zyrmFZhIZ21ZjAghFtpPt TuWlHXabEr6Wz0fzj37UKx/CmYUjjRf2i1l1Iai0L4qyTRwHrmE2EWSdk71UWAj+Xe UDy47SBMRO2+XckrJWZZqero= From: Tomas Volf <~@wolfsden.cz> Date: Sat, 22 Mar 2025 18:00:28 +0100 Message-ID: <354d02073ce991dcbfc794798e892840eeba7888.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-accounts): Use match-record instead of match-lambda with $. Change-Id: I37e3018513a8f20eeed8614dff46a63b8d7c2883 --- gnu/services/version-control.scm | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm index 5e217ed170..83391c15d1 100644 --- a/gnu/services/version-control.scm +++ b/gnu/services/version-control.scm @@ -335,18 +335,19 @@ (define-record-type* (default (gitolite-rc-file))) (admin-pubkey gitolite-configuration-admin-pubkey)) -(define gitolite-accounts - (match-lambda - (($ package user group home-directory - rc-file admin-pubkey) - ;; User group and account to run Gitolite. - (list (user-group (name group) (system? #t)) - (user-account - (name user) - (group group) - (system? #t) - (comment "Gitolite user") - (home-directory home-directory)))))) +(define (gitolite-accounts config) + (match-record config + (user group home-directory) + ;; User group and account to run Gitolite. + (list (user-group + (name group) + (system? #t)) + (user-account + (name user) + (group group) + (system? #t) + (comment "Gitolite user") + (home-directory home-directory))))) (define gitolite-activation (match-lambda