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 ms9.migadu.com with LMTPS id YMRlDG3cMWT4SAAASxT56A (envelope-from ) for ; Sat, 08 Apr 2023 23:28:13 +0200 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 GNMmDG3cMWRzfQAAauVa8A (envelope-from ) for ; Sat, 08 Apr 2023 23:28:13 +0200 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 E95442C485 for ; Sat, 8 Apr 2023 23:28:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plG6O-0005Hc-1v; Sat, 08 Apr 2023 17:28:04 -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 1plG6M-0005HU-3r for guix-patches@gnu.org; Sat, 08 Apr 2023 17:28:02 -0400 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 1plG6L-0005F8-Rw for guix-patches@gnu.org; Sat, 08 Apr 2023 17:28:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1plG6L-0005ZA-Mq for guix-patches@gnu.org; Sat, 08 Apr 2023 17:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62577] [PATCH] refresh: Support select packages SUBSET by module name. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Apr 2023 21:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62577 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: iyzsong@envs.net Cc: 62577@debbugs.gnu.org, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 62577-submit@debbugs.gnu.org id=B62577.168098928021389 (code B ref 62577); Sat, 08 Apr 2023 21:28:01 +0000 Received: (at 62577) by debbugs.gnu.org; 8 Apr 2023 21:28:00 +0000 Received: from localhost ([127.0.0.1]:59747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plG6K-0005Yv-Go for submit@debbugs.gnu.org; Sat, 08 Apr 2023 17:28:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plG6I-0005Ye-4L for 62577@debbugs.gnu.org; Sat, 08 Apr 2023 17:27:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plG6A-0005DF-DP; Sat, 08 Apr 2023 17:27:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=V7NtcQxg73+nzwIVGVqmJNOJkgKTve3hXBDjDiY8Pq4=; b=OApE5TEpEQ6mZyohhJ6c 1909fsagXH+D6H7oc9Lb5BU4l9Hyl0QETOx/wILadZ19fUO4pk+tWPYqY/H7V5Rk7aWoK5gUYlBLq jGTiZ4L6nD7cgNtKdLw6/WkZa54XC6jhkaZ2O89m/VIzRD3HHkLmXH+FPL77KzT45sG5h9DH/Edm3 Eu4PGebpxXcezMU3aF5z/OtU9rmwGACinGa1KDi3FY6+EUkiBc7KaHspN8UCaVa9ZO6WMCDA3xcam XeBMGlP74uOOlrK5s+21++XzZQXCjwn9smuEGy4t0m3GtG0Og5lRjHszQG0bbySH5y9SFJyhyTsR8 GUyrnkmrU3WKuQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plG69-0007Wh-OP; Sat, 08 Apr 2023 17:27:49 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230401035930.3877-1-iyzsong@envs.net> Date: Sat, 08 Apr 2023 23:27:48 +0200 In-Reply-To: <20230401035930.3877-1-iyzsong@envs.net> (iyzsong@envs.net's message of "Sat, 1 Apr 2023 11:59:30 +0800") Message-ID: <87sfda9i97.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Seal: i=1; s=key1; d=yhetil.org; t=1680989293; a=rsa-sha256; cv=none; b=TZrtwUAxoHNNcCwNJkHFbKoJBvJxMzno5Q0wUQ9FjyZ/K69rKOV35O1BkUnyGkciLymAN6 FNPX/vt2UixU4GK0J2ExAEbB4BkSdWHTedqgV40WZSGSgSkEqfN+5mlFV03OJDGRx5fs9D nX64R85mqA/bOzgEof4F6NjB0vI8t8BEiZFdwcthFXge0nH9a3DTuU3Yv9H3BHXKtC7yx+ x6yRijjtzVHfGtmQ80DS5Tye14l8ylPmXxt8gs0Y0lpspQweZgKfscvgLV7kXHbxRvPzsI BNwwFv8cLPb+lSpPcrGEGnNtwpc0S/9zXWxpyJHn6EL6oNoTaE0hhczkUrdURg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=OApE5TEp; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680989293; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=V7NtcQxg73+nzwIVGVqmJNOJkgKTve3hXBDjDiY8Pq4=; b=OL4oRqJ4cvYWlXCn4VhpGCeogXyVR6KqCVzOlmp0eFrkPh2/TKogWRvJhtwhYJTYfWWYpw PicXFSIrK2Z4K+TvSbTlb4phAEfHWThbsbJXNaEIZXhnAvslXL/VlOmwy65RS46OZfq8Mq sA+8XQ4NLjtjR/QkPkS/VUt2Fp9A5pJwpXAl1veq31UNraVR25StFPY96dS15j9LJJHg2w 9ppBX9yaYZTIftP92q2F9nfzWpfb8/K8ImLzx2jOy3bwShuHf3MnYecJVV4cLUACfo1D9w yGdToje16P3QaWjTMYQXuxtBkVmF6pW7KnDkQAs2M1NYme4rA9/kA6H57yo/bQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=OApE5TEp; dmarc=pass (policy=none) header.from=gnu.org; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.42 X-Spam-Score: -3.42 X-Migadu-Queue-Id: E95442C485 X-TUID: f6f3yi+ZS4Nk Hi, iyzsong@envs.net skribis: > From: =E5=AE=8B=E6=96=87=E6=AD=A6 > > * guix/scripts/refresh.scm (%options): Support '--select module:NAME'. > (show-help): Adjust accordingly. > (options->update-specs): Honor the module passed by '--select'. That looks very useful! Could you also update =E2=80=98doc/guix.texi=E2=80=99? > + ((? (cut string-prefix? "module:" <>)) > + (alist-cons 'select > + (cons 'module > + (string->symbol > + (string-drop > + arg (string-length "module:")))) > + result)) Perhaps this should support both full module names: module:(past packages autotools) and: module:guile where the latter is short for =E2=80=9Cmodule:(gnu packages guile)=E2=80=9D. WDYT? Otherwise LGTM. Could you send an updated version? Thanks, Ludo=E2=80=99.