From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EHm6OZSZdmP2SwEAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 21:29:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oA+eOZSZdmMldgAAauVa8A (envelope-from ) for ; Thu, 17 Nov 2022 21:29:08 +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 93CE838B9A for ; Thu, 17 Nov 2022 21:29:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovlVQ-0006yI-3L; Thu, 17 Nov 2022 15:29:04 -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 1ovlVO-0006xM-EK for guix-patches@gnu.org; Thu, 17 Nov 2022 15:29: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 1ovlVO-0007O9-5k for guix-patches@gnu.org; Thu, 17 Nov 2022 15:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovlVN-0003TM-SO for guix-patches@gnu.org; Thu, 17 Nov 2022 15:29:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#58660] [PATCH v2 2/3] etc: teams: Sort and itemize 'scope' field. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Nov 2022 20:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58660 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58660@debbugs.gnu.org Cc: othacehe@gnu.org, zimoun Received: via spool by 58660-submit@debbugs.gnu.org id=B58660.166871692013290 (code B ref 58660); Thu, 17 Nov 2022 20:29:01 +0000 Received: (at 58660) by debbugs.gnu.org; 17 Nov 2022 20:28:40 +0000 Received: from localhost ([127.0.0.1]:34507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovlV1-0003SI-IU for submit@debbugs.gnu.org; Thu, 17 Nov 2022 15:28:39 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:45962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovlUy-0003Ro-0I for 58660@debbugs.gnu.org; Thu, 17 Nov 2022 15:28:37 -0500 Received: by mail-wr1-f52.google.com with SMTP id y16so5720503wrt.12 for <58660@debbugs.gnu.org>; Thu, 17 Nov 2022 12:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3oqvUIfpC2exuC52wfPnoj1ILyx+qkaxpugPTVTd6lU=; b=SAYbl9a7L95zxvAcxhsJ4WGRfAZNJsZ3Fh9+QfWDQhkqvUy02jkVzxOE+ARn/P+qGC 9Qy9hm24OHxzOqo+atXg+Vq89nUIxY9Fmyx30o+/H/S6RQ/zKh71p3tH1hovCrYZ7PI+ olM+Pcvw9kB6TL5gMOlEqp254ow1cXIunC2zVDUksQ090tviIu0J1P5mJ4kPZ3S30vLe 9N10bBKB0rukRn5SeYQKRqg98DupG8EWA69EYItGdjSYF2jbR4XMMhw63ufIKfagCqU3 xA0vJabuksFwESHgSIj8GEalqYuHFssZ3rCjU1DkHqxSdPpRyPl4+BsDVNR6m+vmxNdc Q7kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3oqvUIfpC2exuC52wfPnoj1ILyx+qkaxpugPTVTd6lU=; b=FJIn03pJG07eBs9Phu8WE9p93mlLQXRnl7DKVnU9nT78DEdhJPnU3RxZT+eR11vgWd F2R9rsoJWqVJ+vydIbG2ntWVkziIQWe/jTgyGy641huI4m9sN0jkf/FNm+Y+sIW2YAFg 2x1fzpVl6UfWCg7Eiaic6MGXrLAlF02xqfpels7wKkiADKc6JQ0Jbv2i6IB+tOTPu0O8 PaVnY+qu/orQZ9VFzYHEvIa4KrXnlBiixcAnvkt+dEJtDuYCc1bZ+nL3zVN1EMKsuc3b wxEE1RRnLbRrX3sk9uSAY7Uwpao+apS85DpXgDe/irkF8zCueoU/bU8Rs5rb5c4m7eN9 h5sQ== X-Gm-Message-State: ANoB5plIp7uIQ3RUaYlDWgMCAXsoSHmmU34gPVrgQApajy/M+LM7vOIV nbft9WbLXMvYPF/ElrgfyA3lob1FFvA= X-Google-Smtp-Source: AA0mqf7Ui1ITtO63apIM/+zaJEOsSanOw3ByaeWSPEUuVGFi2pXduinkbjmdM5HNCVwHwk2+l0eMiw== X-Received: by 2002:adf:ce0b:0:b0:235:a4a5:8e91 with SMTP id p11-20020adfce0b000000b00235a4a58e91mr2578728wrn.404.1668716909851; Thu, 17 Nov 2022 12:28:29 -0800 (PST) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id p6-20020a1c5446000000b003b47e75b401sm6539516wmi.37.2022.11.17.12.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 12:28:29 -0800 (PST) From: zimoun Date: Thu, 17 Nov 2022 21:28:19 +0100 Message-Id: <20221117202820.2054593-2-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221117202820.2054593-1-zimon.toutoune@gmail.com> References: <20221117202820.2054593-1-zimon.toutoune@gmail.com> 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668716948; 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:dkim-signature; bh=3oqvUIfpC2exuC52wfPnoj1ILyx+qkaxpugPTVTd6lU=; b=WOKnzBkQMWBLmWsFds4u8jrJ6JWSjSRYUO+66R10oEdEpeZEFLDIG7MhXQHaNp79sJiAbb INA+60pUb9MnPHhK+GqdT/rILi0bz1P+iWuECXXGKKAahmlL6brdtqaTmJ8u1euLIGRrz8 kDLkxb4eU070aSFZW7hVxnQDXiGJS5faWXXd1lj0zVGCv1pR6uIm8B1QlRLS9VVUPuvfj7 JLZzVoOTC2JKHJTFPsPHRP7on/gD2f69yDWIPULizhKa8hLJppWWR5cTzUDJDfwpdAS3el z6UkS0cqjNr1hsDghR9Oi1d5NB3BTyA7GCuA7B5QYnuKhYoz2QS7HZP3ovMgQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668716948; a=rsa-sha256; cv=none; b=Yl+nnyIZlJ7IvnsBNj/AF1yezhLh+NnDgQspNo17mc1CbQm1BJfu3TH4OYuImPSMbX7gtj 8L2si2SqwhE1T+TkTyug9QJkLqP2xD71S6np6wDE+yV8RDDaEswNGUO1qzr/6hAog6mP0P DlV6Y+gX/zA4+FY6L+o49gtbow963oQx3U6NmIYZqhGHZ6N+8BHrHzu0ifO35zXduKExeO PNllX39/2kqc4OFcXCuMHFRwHkjG02HyPBBwsnjuS5hSVx+qbpKes/5SaU+TZAKF21nYnM AOSjp21BiA52y9spGXxwk/nEkrH/X/S6yTAnzIwhxl5lvReeksPaaOHQrKnOHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SAYbl9a7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 4.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SAYbl9a7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 93CE838B9A X-Spam-Score: 4.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: HFvsqSkpCx2+ * etc/teams.scm.in (list-teams): Sort and itemize the 'scope' field. --- etc/teams.scm.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/teams.scm.in b/etc/teams.scm.in index e4e0dc209d..3f90e0e6f2 100644 --- a/etc/teams.scm.in +++ b/etc/teams.scm.in @@ -562,7 +562,14 @@ (define width* (%text-width)) "") (match (team-scope team) (() "") - (scope (format #f "scope: ~{~s ~}~%" scope)))) + (scope-files + (fold + (lambda (str fmt) + (string-append fmt str)) + (format #f "scope:~%") + (sort + (map (lambda (scope) (format #f "+ ~a~%" scope)) scope-files) + string<=?))))) (list-members team port* "+ ") (newline)) (if team-names -- 2.38.1