From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IJ/tNCAsuGNo+wAAbAwnHQ (envelope-from ) for ; Fri, 06 Jan 2023 15:11:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SObnNCAsuGNE3AAAauVa8A (envelope-from ) for ; Fri, 06 Jan 2023 15:11:44 +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 779DB2815E for ; Fri, 6 Jan 2023 15:11:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDnR4-0001t2-C1; Fri, 06 Jan 2023 09:11:06 -0500 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 1pDnR0-0001sg-NH for guix-patches@gnu.org; Fri, 06 Jan 2023 09:11:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDnR0-0008RI-7n for guix-patches@gnu.org; Fri, 06 Jan 2023 09:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDnR0-0004Ae-3U for guix-patches@gnu.org; Fri, 06 Jan 2023 09:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60582] [PATCH v2 1/2] services: configuration: Format a list of packages by their names. References: In-Reply-To: Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Jan 2023 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60582 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60582@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 60582-submit@debbugs.gnu.org id=B60582.167301425116003 (code B ref 60582); Fri, 06 Jan 2023 14:11:02 +0000 Received: (at 60582) by debbugs.gnu.org; 6 Jan 2023 14:10:51 +0000 Received: from localhost ([127.0.0.1]:54124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDnQo-00049y-SL for submit@debbugs.gnu.org; Fri, 06 Jan 2023 09:10:51 -0500 Received: from smtpm5.myservices.hosting ([185.26.105.236]:57068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDnQn-00049h-2P for 60582@debbugs.gnu.org; Fri, 06 Jan 2023 09:10:49 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpm5.myservices.hosting (Postfix) with ESMTP id 8F9A320C04 for <60582@debbugs.gnu.org>; Fri, 6 Jan 2023 15:10:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 43CC8800A2; Fri, 6 Jan 2023 15:10:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id H-hRcKOv_ZN6; Fri, 6 Jan 2023 15:10:44 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-118-236.dsl.telepac.pt [85.242.118.236]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id C66318009A; Fri, 6 Jan 2023 15:10:43 +0100 (CET) From: Bruno Victal Date: Fri, 6 Jan 2023 14:10:34 +0000 Message-Id: X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673014304; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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; bh=Kt1jqF04X0LldF2PCgJr5gLT7aRudIEfhKxTXlUx4Ck=; b=FlAxPskFLuILoxNajy637BHv6E5c2Kx+celllJL+mtax0CSEaL70cgqtkmZFJEoE8M5qQR rBV9LXJAUqnRJe9ID37AJ4rJamjXUtaAUE0vHWMxFFE9FhMeWjWPGK8hWwwL+hfkXYClJC uTtFkXEMPk6zKCwih0rDT2P4mQzbazPzpEC8km946u3ofkdMtzl5CbhFX8Pj8awYT1/T68 HkoXNE24Ry6ycIcuLAOw3hj99FvM+MjAFRLJC9UeqFb+cAWR74ATZTTAQf/cgetE592spM 6HYYZN5IJdxqKGuCe/mwnoSL2/BiS82/FvLXOcVB4I+kTLuaTK65wKpyyYNkEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673014304; a=rsa-sha256; cv=none; b=FnVi74J1b8vNWeqBPy6DRW4ZZoEHcI47XatyJTCr+VqcV7N8iQQdLhENLtct0zhE9U4MJw fwv2IndG60aklP2KvJam9iv+Ck52/cGYro94S1zNeW6OfCCxAIqMOyilzGebiYh0xOWfwx gk3Uaowrg5ICqUqVqllzyBeF4cAkiw9gTnLI8J9VROTOrPc5ROzXOei+rlWCXuBJGH7OCr EgLkIINTvpn+K89QVW0KDpVwsp3L5a5u6MjvEsproRseq6zn2XoozrYt9sJv7v2Fx9DqyB pEWAfeoWi0Ceoy2iVAjIUcqrquo7ii/XyX3l4WaV4GOxHi0RaVDROFLDbF4bXQ== X-Spam-Score: -1.55 X-Migadu-Queue-Id: 779DB2815E Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.55 X-TUID: 8h0cpeP1b5zY * gnu/services/configuration.scm (generate-documentation): Format a list of packages by their names. --- gnu/services/configuration.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm index 6b0291dc00..482b49aae4 100644 --- a/gnu/services/configuration.scm +++ b/gnu/services/configuration.scm @@ -35,6 +35,7 @@ (define-module (gnu services configuration) #:autoload (texinfo serialize) (stexi->texi) #:use-module (ice-9 curried-definitions) #:use-module (ice-9 match) + #:use-module (ice-9 format) #:use-module (srfi srfi-1) #:use-module (srfi srfi-34) #:use-module (srfi srfi-35) @@ -370,6 +371,9 @@ (define (show-default val) (cond ((package? val) (symbol->string (package->symbol val))) + ((and ((list-of package?) val) (not (null? val))) + (format #f "(~{~a~^ ~})" + (map package->symbol val))) (else (str val)))) `(entry (% (heading base-commit: a768b0433e0b79c5a32910ce5515086b92725e84 -- 2.38.1