From unknown Fri Aug 15 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#62577] [PATCH] refresh: Support select packages SUBSET by module name. Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Apr 2023 04:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62577 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62577@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168032154817275 (code B ref -1); Sat, 01 Apr 2023 04:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2023 03:59:08 +0000 Received: from localhost ([127.0.0.1]:35029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piSOR-0004UY-Eq for submit@debbugs.gnu.org; Fri, 31 Mar 2023 23:59:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:46902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piSOP-0004UQ-6K for submit@debbugs.gnu.org; Fri, 31 Mar 2023 23:59:05 -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 1piSOO-0005tx-PX for guix-patches@gnu.org; Fri, 31 Mar 2023 23:59:04 -0400 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piSON-0001KC-6x for guix-patches@gnu.org; Fri, 31 Mar 2023 23:59:04 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 6FCDB38A008E; Sat, 1 Apr 2023 03:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1680321532; bh=eC5vKsHFIzfwLxni8sdkpzmtHAmTgQSx+jGV52qea58=; h=From:To:Cc:Subject:Date:From; b=bVf9VYkyntB6XWKt/fZxTK/Mov6ReSF/tSm85XlMB78B1b1JaYKl5Vfv32PD0F6iM KB9VP1jBJZ50yFxRqKplN7G6aEz4cScDLlKDwtZxkOqtR09TTPrhxXOuL0rPADpdbi XfzRKZoFlJVUcnVNoAt+Lvo26j1PQsvZalxWdClZjhUTi9pSvcUDmQfE2/6SHew9dN kOzbeSVs6cLRG8e9gZJNCCFEHZOPE6C7B0rpSqyeGJvW92qu7GywwI+/d8MMeX1GKn iX8RvcXrO94P5hKFtJFNnbdWQKxduvAuabqtKt+U9/5m/Sxs5FQh9Qsvhqazcqsomv SoQbBxfisOh/R0s4uAMog/RHn/wsv+0rPz4Xhd+0reeInr+v8K7wy2pzOiRrIarBJe V9AEEPlIb4DarXWeV608lyHSqy5oSp0g74srmIY49Ah018zmYWhbxqCZgNODhH4KcA LXtUBMje8JlpKnJhN75GvJiGWW0qGnb1fV9juwJrP2WA5TCOGj8nbzvlWal99rOzHB Qr+Ip9CKOGaeoDI2eDkmRsOKcW87k0hDl5sxYj1VrvbAi7PgfMoNiynl/lb6qWPQ6a 2emxydWZyUIiq7HF2BQeHPd5yljLbfNkT6FddoqmUNAEdGoBeo/DRKzZD8POIxV4cK Pdzw22GNlZxEgeVFULker4uk= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mYO3UmLfc3k6; Sat, 1 Apr 2023 03:58:49 +0000 (UTC) Received: from localhost (unknown [36.170.59.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sat, 1 Apr 2023 03:58:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id ffe964bb; Sat, 1 Apr 2023 03:59:32 +0000 (UTC) From: iyzsong@envs.net Date: Sat, 1 Apr 2023 11:59:30 +0800 Message-Id: <20230401035930.3877-1-iyzsong@envs.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) From: 宋文武 * guix/scripts/refresh.scm (%options): Support '--select module:NAME'. (show-help): Adjust accordingly. (options->update-specs): Honor the module passed by '--select'. --- guix/scripts/refresh.scm | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm index bc6c24967a..d6ac574b1f 100644 --- a/guix/scripts/refresh.scm +++ b/guix/scripts/refresh.scm @@ -32,6 +32,7 @@ (define-module (guix scripts refresh) #:use-module ((guix scripts build) #:select (%standard-build-options)) #:use-module (guix store) #:use-module (guix utils) + #:use-module (guix discovery) #:use-module (guix packages) #:use-module (guix profiles) #:use-module (guix upstream) @@ -71,8 +72,15 @@ (define %options ((or "core" "non-core") (alist-cons 'select (string->symbol arg) result)) + ((? (cut string-prefix? "module:" <>)) + (alist-cons 'select + (cons 'module + (string->symbol + (string-drop + arg (string-length "module:")))) + result)) (x - (leave (G_ "~a: invalid selection; expected `core' or `non-core'~%") + (leave (G_ "~a: invalid selection; expected `core', `non-core' or `module:NAME'~%") arg))))) (option '(#\t "type") #t #f (lambda (opt name arg result) @@ -141,8 +149,8 @@ (define (show-help) (display (G_ " -u, --update update source files in place")) (display (G_ " - -s, --select=SUBSET select all the packages in SUBSET, one of - `core' or `non-core'")) + -s, --select=SUBSET select all the packages in SUBSET, one of `core`, + `non-core' or `module:NAME' (eg: module:guile)")) (display (G_ " -m, --manifest=FILE select all the packages from the manifest in FILE")) (display (G_ " @@ -257,13 +265,20 @@ (define update-specs (let ((select? (match (assoc-ref opts 'select) ('core core-package?) ('non-core (negate core-package?)) - (_ (const #t))))) + (_ (const #t)))) + (modules (match (assoc-ref opts 'select) + (('module . mod) + (list (resolve-interface `(gnu packages ,mod)))) + (_ (all-modules (%package-module-path) + #:warn + warn-about-load-error))))) (map update-spec (fold-packages (lambda (package result) (if (select? package) (keep-newest package result) result)) - '())))) + '() + modules)))) (some ;user-specified packages some))) base-commit: 1c6238794b0058003fa6c827ca0d039764ebe699 -- 2.39.2 From unknown Fri Aug 15 20:03:53 2025 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-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From unknown Fri Aug 15 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#62577] [PATCH v2] refresh: Support select packages SUBSET by module name. References: <20230401035930.3877-1-iyzsong@envs.net> In-Reply-To: <20230401035930.3877-1-iyzsong@envs.net> Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Apr 2023 04:44: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: 62577@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 62577-submit@debbugs.gnu.org id=B62577.168101538219107 (code B ref 62577); Sun, 09 Apr 2023 04:44:01 +0000 Received: (at 62577) by debbugs.gnu.org; 9 Apr 2023 04:43:02 +0000 Received: from localhost ([127.0.0.1]:60058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plMtK-0004xv-8O for submit@debbugs.gnu.org; Sun, 09 Apr 2023 00:43:02 -0400 Received: from mail.envs.net ([5.199.136.28]:56234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plMtH-0004xg-Uh for 62577@debbugs.gnu.org; Sun, 09 Apr 2023 00:43:01 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 8B04938A0066; Sun, 9 Apr 2023 04:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1681015377; bh=XiG8AofPlelgotAkEy2FGgu3VG02lXseCo7Y3QOGLFw=; h=From:To:Cc:Subject:Date:From; b=LcdWRX9Ebkt1RBCbehR6GtgURb/2nbX7UWjRp6DGAqfKTrPjwa3+5yWdVs3wXvdtS /Fd3tLb8pl66PjNsiq8nQ6+r1aS84dd5WkdU0qjRQgq4w035qrtfudj2p9MO3i2KEX JtmBFLhFdIi6AAaSpAdaXUIWO5X4Hf/akyR2jNgEFxFa0O8HMRrKRRWEyK0yCNSwVM 6DuokW1joHQk45Ky8QCr44KS/e/3bpNqUm+d7S5hi1VuveBHZw2JHqvl7ZJN6xhcId x1foU6ecTACPOAvwIgBMFSJRR7hb81LVBA6Zu6XQvo2XrBldemsRHDNaYdRIm6UyUd 8THUFCsDvhUkY1LHromAh7iWht7EmW2GZ3tq2Cm+rl7WVHQRlUbgsKM/L9nbkircM3 qhMJyjvz1UzmPVbKgOGNC8bwp3VAqVWG6O7eIc+JPt2GzAtDGj18YJ9aMJi6SktYSB AsPzBUs+g6qF93NK42evDrI2lorSxsakcJSCBcEsKoaO6R52nTcV68aTHPR6gT4ukR WAur3ys4voipfuWXLs/XHJeAlwLjl96V2UwlI86qzs0KYed4mLdkNcG4GA732zqYjP xd8Qbu7w/y3RRYpClnO3/qEyOJf9C8UYXW5q/6egoXJ0CLQVQdwcWoQRcjhCjm6JVI lHTRWdmec6yq+bXX4K/zyXOs= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yfO2pBnhU3l2; Sun, 9 Apr 2023 04:42:50 +0000 (UTC) Received: from localhost (unknown [36.170.56.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sun, 9 Apr 2023 04:42:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 00d3c0ef; Sun, 9 Apr 2023 04:43:39 +0000 (UTC) From: iyzsong@envs.net Date: Sun, 9 Apr 2023 12:43:30 +0800 Message-Id: <20230409044330.6424-1-iyzsong@envs.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) From: 宋文武 * guix/scripts/refresh.scm (%options): Support '--select module:NAME'. (show-help): Adjust accordingly. (options->update-specs): Honor the module passed by '--select'. * doc/guix.texi (Invoking guix refresh): Document it. --- doc/guix.texi | 9 +++++++-- guix/scripts/refresh.scm | 36 +++++++++++++++++++++++++++++++----- 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index ed42488882..711755dbe3 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -14227,8 +14227,8 @@ $ ./pre-inst-env guix refresh -s non-core -u @item --select=[@var{subset}] @itemx -s @var{subset} -Select all the packages in @var{subset}, one of @code{core} or -@code{non-core}. +Select all the packages in @var{subset}, one of @code{core}, @code{non-core} +or @code{module:NAME}. The @code{core} subset refers to all the packages at the core of the distribution---i.e., packages that are used to build ``everything @@ -14241,6 +14241,11 @@ The @code{non-core} subset refers to the remaining packages. It is typically useful in cases where an update of the core packages would be inconvenient. +The @code{module:NAME} subset refers to all the packages in a specified +guile module. The module can be specified as @code{module:guile} or +@code{module:(gnu packages guile)}, the former is a shorthand for the +later. + @item --manifest=@var{file} @itemx -m @var{file} Select all the packages from the manifest in @var{file}. This is useful to diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm index bc6c24967a..47c4d55ec4 100644 --- a/guix/scripts/refresh.scm +++ b/guix/scripts/refresh.scm @@ -32,6 +32,7 @@ (define-module (guix scripts refresh) #:use-module ((guix scripts build) #:select (%standard-build-options)) #:use-module (guix store) #:use-module (guix utils) + #:use-module (guix discovery) #:use-module (guix packages) #:use-module (guix profiles) #:use-module (guix upstream) @@ -44,6 +45,7 @@ (define-module (guix scripts refresh) #:use-module ((gnu packages commencement) #:select (%final-inputs)) #:use-module (ice-9 match) #:use-module (ice-9 format) + #:use-module (ice-9 regex) #:use-module (srfi srfi-1) #:use-module (srfi srfi-9) #:use-module (srfi srfi-26) @@ -71,8 +73,23 @@ (define %options ((or "core" "non-core") (alist-cons 'select (string->symbol arg) result)) + ((? (cut string-prefix? "module:" <>)) + (let ((mod (cond + ;; Shorthand name: "module:guile". + ((string-match "module:([^\( ]+)$" arg) => + (lambda (m) + `(gnu packages ,(string->symbol + (match:substring m 1))))) + ;; Full name : "module:(gnu packages guile)". + ((string-match "module:\\(([^)]+)\\)$" arg) => + (lambda (m) + (map string->symbol + (string-split + (match:substring m 1) #\space)))) + (else (leave (G_ "invalid module: ~a~%") arg))))) + (alist-cons 'select (cons 'module mod) result))) (x - (leave (G_ "~a: invalid selection; expected `core' or `non-core'~%") + (leave (G_ "~a: invalid selection; expected `core', `non-core' or `module:NAME'~%") arg))))) (option '(#\t "type") #t #f (lambda (opt name arg result) @@ -141,8 +158,10 @@ (define (show-help) (display (G_ " -u, --update update source files in place")) (display (G_ " - -s, --select=SUBSET select all the packages in SUBSET, one of - `core' or `non-core'")) + -s, --select=SUBSET select all the packages in SUBSET, one of `core`, + `non-core' or `module:NAME' (eg: module:guile) + the module can also be fully specified as + 'module:(gnu packages guile)'")) (display (G_ " -m, --manifest=FILE select all the packages from the manifest in FILE")) (display (G_ " @@ -257,13 +276,20 @@ (define update-specs (let ((select? (match (assoc-ref opts 'select) ('core core-package?) ('non-core (negate core-package?)) - (_ (const #t))))) + (_ (const #t)))) + (modules (match (assoc-ref opts 'select) + (('module . mod) + (list (resolve-interface mod))) + (_ (all-modules (%package-module-path) + #:warn + warn-about-load-error))))) (map update-spec (fold-packages (lambda (package result) (if (select? package) (keep-newest package result) result)) - '())))) + '() + modules)))) (some ;user-specified packages some))) base-commit: c1262edba9118af6507dc47ce6ad61ffdec02384 -- 2.39.2 From unknown Fri Aug 15 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#62577] [PATCH] refresh: Support select packages SUBSET by module name. Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Apr 2023 04:46:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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.168101554519362 (code B ref 62577); Sun, 09 Apr 2023 04:46:02 +0000 Received: (at 62577) by debbugs.gnu.org; 9 Apr 2023 04:45:45 +0000 Received: from localhost ([127.0.0.1]:60063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plMvx-00052E-43 for submit@debbugs.gnu.org; Sun, 09 Apr 2023 00:45:45 -0400 Received: from mail.envs.net ([5.199.136.28]:54718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plMvv-000526-D1 for 62577@debbugs.gnu.org; Sun, 09 Apr 2023 00:45:43 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id CF09538A0066; Sun, 9 Apr 2023 04:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1681015542; bh=pb+jrmcAbZq4HHinwZNWwsJeJxgFyTFfRXWmTJEWGl0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HLUFPOW8TumHceKTqYY1TXz4H+ijBD9gqRM5Goxcn2ijGJLpTyZs/GZe36tXm8Q9X pGd6IyFgQ9Qi6fxpcO5mSiRKU8TiUz1GOQ8dIQtkR/f2R70+gEMyzf9RBSjzAHJvVo g0jxnRerSkf3stowjISbejN608kYBs57xPN23+nMF//22HozlvvSqzZAhj5U3w8cEQ QUhGeJtY6wzS19XCu6kGIIoz8iKSjCcP5LCZI2UkZO/x1EcAlKUHCVrKA7HRx+0YSp o71O5/wy3nWYvoCzsClQoUc9VHhbIIovBVWlGASwOF0v3mWrMgtf7VFbpEmy40O4sI nDk1azUJpIuZvGUwJ+AQu4aF0bwjbX0L1o/Fh+UnC+q8q/FZoblUbl/8B7B2164fjS n8c/sOLhngQtEpCIyInXHw7GZ++wfYuZPC9A6n82gXBO9rJRCk/osdPW0HBzoIz97v uzKjM612/ufAExDUoYhKOIb7dhUM6eXmS7EHWmZgVNkr7VRYaXbnehJvjHBEuy0OmR nceYQd0zTCJHyjzGUme8P3FqkQrifyUrWpVwekETNb72vGLgNTN5a1xFwaU66C6sYz 2IPecAXbD+I3XA2eh9Q13ryzYpWDsZMXyk6Z4SQHv7BsWoWTq1S41gMYgrH5lBKLe5 hFeCNNBbihyNIOupBxH/r9lc= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 83JGy0SIHVuu; Sun, 9 Apr 2023 04:45:38 +0000 (UTC) Received: from localhost (unknown [36.170.56.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sun, 9 Apr 2023 04:45:38 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 224a198c; Sun, 9 Apr 2023 04:46:36 +0000 (UTC) From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: <20230401035930.3877-1-iyzsong@envs.net> <87sfda9i97.fsf@gnu.org> Date: Sun, 09 Apr 2023 12:46:36 +0800 In-Reply-To: <87sfda9i97.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 08 Apr 2023 23:27:48 +0200") Message-ID: <87lej1k6hf.fsf@envs.net> 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-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Court=C3=A8s writes: > Could you send an updated version? v2 patch sent with update guix.texi and support full module name, thank you for the suggestions! From unknown Fri Aug 15 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#62577] [PATCH v2] 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: Thu, 20 Apr 2023 10:19: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.168198589920488 (code B ref 62577); Thu, 20 Apr 2023 10:19:01 +0000 Received: (at 62577) by debbugs.gnu.org; 20 Apr 2023 10:18:19 +0000 Received: from localhost ([127.0.0.1]:36661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppRMo-0005KO-Ts for submit@debbugs.gnu.org; Thu, 20 Apr 2023 06:18:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppRMm-0005K8-Vl for 62577@debbugs.gnu.org; Thu, 20 Apr 2023 06:18:17 -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 1ppRMg-000129-RO; Thu, 20 Apr 2023 06:18:10 -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=c1Oe5xkcEehtkmJGp0nxklfUH9nstbWOC5vcHd7z2Ik=; b=dP6HDsgKSvqYXm2IUIpS F8UMGGh7wpH1IMevmNdcCtrIMqHEnUWJR3BDUvEZB+f9E76xzRyHixbTNbtzwO8w/cbuHVKRdFPfd VKYaMRyzo41aJfFkKSvcIT1YMePgNDibpAV17QlBl2x4+twZPkMS/hEV3nJPCj6Ahz45odOHB6bo6 Y8lVYBGTz5U0htkPEOejZHYydfkdmDW3jg5q7fpDpIlJXwmo+04xDGyux4rkD2cDub+b/a/O5tITX LBxAn2oEqMTBArsKgBOWwcjfG1KIchgUwor42IAXrCJjN1q2J0TUgADIjdghcvrsPh7eLj+bmESmE AuUHYmogacOzYw==; Received: from [193.50.110.118] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppRMg-0004Hf-8e; Thu, 20 Apr 2023 06:18:10 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230409044330.6424-1-iyzsong@envs.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 1 =?UTF-8?Q?Flor=C3=A9al?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour de la Rose X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 20 Apr 2023 12:18:08 +0200 In-Reply-To: <20230409044330.6424-1-iyzsong@envs.net> (iyzsong@envs.net's message of "Sun, 9 Apr 2023 12:43:30 +0800") Message-ID: <87y1mmvov3.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-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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'. > * doc/guix.texi (Invoking guix refresh): Document it. [...] > +Select all the packages in @var{subset}, one of @code{core}, @code{non-c= ore} > +or @code{module:NAME}. >=20=20 > The @code{core} subset refers to all the packages at the core of the > distribution---i.e., packages that are used to build ``everything > @@ -14241,6 +14241,11 @@ The @code{non-core} subset refers to the remaini= ng packages. It is > typically useful in cases where an update of the core packages would be > inconvenient. >=20=20 > +The @code{module:NAME} subset refers to all the packages in a specified s/@code{module:NAME}/@code{module:@var{name}}/ Otherwise LGTM, thanks! Ludo=E2=80=99. From unknown Fri Aug 15 20:03:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: iyzsong@envs.net Subject: bug#62577: closed (Re: bug#62577: [PATCH] refresh: Support select packages SUBSET by module name.) Message-ID: References: <87v8hn6of1.fsf_-_@envs.net> <20230401035930.3877-1-iyzsong@envs.net> X-Gnu-PR-Message: they-closed 62577 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 62577@debbugs.gnu.org Date: Sun, 23 Apr 2023 07:37:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1682235421-14963-1" This is a multi-part message in MIME format... ------------=_1682235421-14963-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #62577: [PATCH] refresh: Support select packages SUBSET by module name. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 62577@debbugs.gnu.org. --=20 62577: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62577 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1682235421-14963-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 62577-done) by debbugs.gnu.org; 23 Apr 2023 07:36:11 +0000 Received: from localhost ([127.0.0.1]:44549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqUGW-0003sE-MM for submit@debbugs.gnu.org; Sun, 23 Apr 2023 03:36:11 -0400 Received: from mail.envs.net ([5.199.136.28]:35114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqUGO-0003rf-SX for 62577-done@debbugs.gnu.org; Sun, 23 Apr 2023 03:36:07 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 8B18C38A07DF; Sun, 23 Apr 2023 07:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1682235359; bh=F34Qs+NnQVp+GzdRnxR2ak5OfPuiTEYDycoVZehHTNw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lIOh8BocR1TY4nl0gIdI0dJ0sjKX8A+BYLfqVjlgvPDRnQX/+CswGnQtTRJ7XCqax +HDzqFoaVcnj61Nk4hl8iLDvkCMrk2jgLJKlvqW5/1mjzQGvLOXm0lg4knrreamMbo ztHdGBFfgMQBmRHETqOnx4zpNQyLMXnqSvOkThEb9Zv/dg/YVZaN7s8pjLqYqqkxJB 2dxf5Few/eJaQyXiS8G0KG3O/OAP7y/PVLH+P03asW+Rk+KRTpVkm4RiEGpX7BcsAw 5tImI2oTwzpd3DbHZXjLJQxnR7016dStmziR9sJsL23i09H+ivDkhGGojVm0oHfDoJ pY3RcBcowzxOitWQ/KNY/fYAJI34VBY+zYz+VqgEoqcSuO+7X69E5xiukfqGUsKboe iJ9bSUq/MgKr3fQTPBUtpPQg7Ax3CtrGNLLbDjF+B5ZyzJ4UWyFExEr9LdsxDTqKLj RHsEYxbdB7SjJmbFnFmiwrCLYsjuOdSfTFyRNhXFxDSrI//t6G7mKP37iZWyB7ecFT ka7YpGf4aODxQtHBkUavDgIAdg+lXvlGC96wX6iT4+ZXE1fYKJVSxd+UsExAL3bzS8 Ecw+8nVjcqEVNY1vPtEbvxAn3xk0385zJLNcXBB6OE3Glo0k/S2qsP7JAf0XWuWq4D dNtr/LpI7iYeeR36zP2w25FA= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id q9-ICZ7LIwLe; Sun, 23 Apr 2023 07:35:56 +0000 (UTC) Received: from localhost (unknown [36.170.45.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sun, 23 Apr 2023 07:35:56 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 15c06814; Sun, 23 Apr 2023 07:36:02 +0000 (UTC) From: =?utf-8?B?5a6L5paH5q2m?= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#62577: [PATCH] refresh: Support select packages SUBSET by module name. References: <20230409044330.6424-1-iyzsong@envs.net> <87y1mmvov3.fsf@gnu.org> Date: Sun, 23 Apr 2023 15:36:02 +0800 In-Reply-To: <87y1mmvov3.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 20 Apr 2023 12:18:08 +0200") Message-ID: <87v8hn6of1.fsf_-_@envs.net> 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62577-done Cc: 62577-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Court=C3=A8s writes: >> +The @code{module:NAME} subset refers to all the packages in a specified > > s/@code{module:NAME}/@code{module:@var{name}}/ > > Otherwise LGTM, thanks! Pushed, thank you for review! ------------=_1682235421-14963-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Apr 2023 03:59:08 +0000 Received: from localhost ([127.0.0.1]:35029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piSOR-0004UY-Eq for submit@debbugs.gnu.org; Fri, 31 Mar 2023 23:59:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:46902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piSOP-0004UQ-6K for submit@debbugs.gnu.org; Fri, 31 Mar 2023 23:59:05 -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 1piSOO-0005tx-PX for guix-patches@gnu.org; Fri, 31 Mar 2023 23:59:04 -0400 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piSON-0001KC-6x for guix-patches@gnu.org; Fri, 31 Mar 2023 23:59:04 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 6FCDB38A008E; Sat, 1 Apr 2023 03:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1680321532; bh=eC5vKsHFIzfwLxni8sdkpzmtHAmTgQSx+jGV52qea58=; h=From:To:Cc:Subject:Date:From; b=bVf9VYkyntB6XWKt/fZxTK/Mov6ReSF/tSm85XlMB78B1b1JaYKl5Vfv32PD0F6iM KB9VP1jBJZ50yFxRqKplN7G6aEz4cScDLlKDwtZxkOqtR09TTPrhxXOuL0rPADpdbi XfzRKZoFlJVUcnVNoAt+Lvo26j1PQsvZalxWdClZjhUTi9pSvcUDmQfE2/6SHew9dN kOzbeSVs6cLRG8e9gZJNCCFEHZOPE6C7B0rpSqyeGJvW92qu7GywwI+/d8MMeX1GKn iX8RvcXrO94P5hKFtJFNnbdWQKxduvAuabqtKt+U9/5m/Sxs5FQh9Qsvhqazcqsomv SoQbBxfisOh/R0s4uAMog/RHn/wsv+0rPz4Xhd+0reeInr+v8K7wy2pzOiRrIarBJe V9AEEPlIb4DarXWeV608lyHSqy5oSp0g74srmIY49Ah018zmYWhbxqCZgNODhH4KcA LXtUBMje8JlpKnJhN75GvJiGWW0qGnb1fV9juwJrP2WA5TCOGj8nbzvlWal99rOzHB Qr+Ip9CKOGaeoDI2eDkmRsOKcW87k0hDl5sxYj1VrvbAi7PgfMoNiynl/lb6qWPQ6a 2emxydWZyUIiq7HF2BQeHPd5yljLbfNkT6FddoqmUNAEdGoBeo/DRKzZD8POIxV4cK Pdzw22GNlZxEgeVFULker4uk= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mYO3UmLfc3k6; Sat, 1 Apr 2023 03:58:49 +0000 (UTC) Received: from localhost (unknown [36.170.59.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sat, 1 Apr 2023 03:58:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id ffe964bb; Sat, 1 Apr 2023 03:59:32 +0000 (UTC) From: iyzsong@envs.net To: guix-patches@gnu.org Subject: [PATCH] refresh: Support select packages SUBSET by module name. Date: Sat, 1 Apr 2023 11:59:30 +0800 Message-Id: <20230401035930.3877-1-iyzsong@envs.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) From: 宋文武 * guix/scripts/refresh.scm (%options): Support '--select module:NAME'. (show-help): Adjust accordingly. (options->update-specs): Honor the module passed by '--select'. --- guix/scripts/refresh.scm | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm index bc6c24967a..d6ac574b1f 100644 --- a/guix/scripts/refresh.scm +++ b/guix/scripts/refresh.scm @@ -32,6 +32,7 @@ (define-module (guix scripts refresh) #:use-module ((guix scripts build) #:select (%standard-build-options)) #:use-module (guix store) #:use-module (guix utils) + #:use-module (guix discovery) #:use-module (guix packages) #:use-module (guix profiles) #:use-module (guix upstream) @@ -71,8 +72,15 @@ (define %options ((or "core" "non-core") (alist-cons 'select (string->symbol arg) result)) + ((? (cut string-prefix? "module:" <>)) + (alist-cons 'select + (cons 'module + (string->symbol + (string-drop + arg (string-length "module:")))) + result)) (x - (leave (G_ "~a: invalid selection; expected `core' or `non-core'~%") + (leave (G_ "~a: invalid selection; expected `core', `non-core' or `module:NAME'~%") arg))))) (option '(#\t "type") #t #f (lambda (opt name arg result) @@ -141,8 +149,8 @@ (define (show-help) (display (G_ " -u, --update update source files in place")) (display (G_ " - -s, --select=SUBSET select all the packages in SUBSET, one of - `core' or `non-core'")) + -s, --select=SUBSET select all the packages in SUBSET, one of `core`, + `non-core' or `module:NAME' (eg: module:guile)")) (display (G_ " -m, --manifest=FILE select all the packages from the manifest in FILE")) (display (G_ " @@ -257,13 +265,20 @@ (define update-specs (let ((select? (match (assoc-ref opts 'select) ('core core-package?) ('non-core (negate core-package?)) - (_ (const #t))))) + (_ (const #t)))) + (modules (match (assoc-ref opts 'select) + (('module . mod) + (list (resolve-interface `(gnu packages ,mod)))) + (_ (all-modules (%package-module-path) + #:warn + warn-about-load-error))))) (map update-spec (fold-packages (lambda (package result) (if (select? package) (keep-newest package result) result)) - '())))) + '() + modules)))) (some ;user-specified packages some))) base-commit: 1c6238794b0058003fa6c827ca0d039764ebe699 -- 2.39.2 ------------=_1682235421-14963-1--