From patchwork Fri Mar 3 16:21:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 47578 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 8600A16D0F; Fri, 3 Mar 2023 16:25:23 +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=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 C302516878 for ; Fri, 3 Mar 2023 16:25:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pY8DQ-0004rh-Ub; Fri, 03 Mar 2023 11:25: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 1pY8DP-0004rC-DT for guix-patches@gnu.org; Fri, 03 Mar 2023 11:25:03 -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 1pY8DP-0002Y4-1P for guix-patches@gnu.org; Fri, 03 Mar 2023 11:25:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pY8DO-0004zd-Gi for guix-patches@gnu.org; Fri, 03 Mar 2023 11:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60564] [PATCH] scripts: refresh: Add -T option. References: <20230105011032.18623-1-jgart@dismail.de> In-Reply-To: <20230105011032.18623-1-jgart@dismail.de> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Mar 2023 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60564 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60564@debbugs.gnu.org Cc: Josselin Poiret , jgart , Maxim Cournoyer Received: via spool by 60564-submit@debbugs.gnu.org id=B60564.167786068819163 (code B ref 60564); Fri, 03 Mar 2023 16:25:02 +0000 Received: (at 60564) by debbugs.gnu.org; 3 Mar 2023 16:24:48 +0000 Received: from localhost ([127.0.0.1]:33786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY8DA-0004yw-9J for submit@debbugs.gnu.org; Fri, 03 Mar 2023 11:24:48 -0500 Received: from mx1.dismail.de ([78.46.223.134]:47677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY8D8-0004yh-7N for 60564@debbugs.gnu.org; Fri, 03 Mar 2023 11:24:47 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 622ab1fa; Fri, 3 Mar 2023 17:24:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=eKz4qnQi8ZsczcWdQKCcUcpez11V9OrTkvsyUC9vZzs=; b= d+0r+MuK6TsNuBzdk+rCDxJMiukbDJZRURHV/K6jPu20uJN2YFE6hKzQ8l0dGonw nPtpKaLGMIBJ5u4rMka6vZ+C9aEfWo6ktOQFKTT9doyKXmZe6JTWvwvzavEfuFV0 7xYWV8CXPDwUnJsSMR9Trr5Qz9AWHoHTfd15oAWwY/Dm6nZCTfU0hts6lX+dG7Ps BW0/lqh4TMuQqIZLU9rD66kJW2CWn+W62/k9MhvJludzI+P+HO0Gvt6FlKcRo67Z 2kLHNv+Y2L1rH5iQqA3pTRXiJvG2CFbpmP15NkHVX55QABppotL/J8QLSif2wUCu qPNcW/E35gybvjR9gEKkYg== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id e5b12f30; Fri, 3 Mar 2023 17:24:38 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 137534bd; Fri, 3 Mar 2023 17:24:38 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 26ce84b7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 3 Mar 2023 17:24:37 +0100 (CET) Date: Fri, 3 Mar 2023 17:21:36 +0100 Message-Id: <20230303162135.2864-1-jgart@dismail.de> X-Mailer: git-send-email 2.39.1 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: , Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart 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 * doc/guix.texi (Invoking guix refresh): Document the -T option. * guix/scripts/refresh.scm (%options): Add the -T flag. --- Hi Josselin and Maxim > I wonder if this option is common enough to need a dedicated short > switch? I would probably use the option more if it had a short option ;() I think that it is useful. What would be the negative of adding the short option for it? all best, jgart doc/guix.texi | 1 + guix/scripts/refresh.scm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 6ff525d0ff..25bbd75f04 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -14327,6 +14327,7 @@ for compatibility with an upgraded @code{flex} package. @table @code @item --list-transitive +@item -T List all the packages which one or more packages depend upon. @example diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm index 6498d73c2b..6b633840e0 100644 --- a/guix/scripts/refresh.scm +++ b/guix/scripts/refresh.scm @@ -101,7 +101,7 @@ (define %options (option '(#\r "recursive") #f #f (lambda (opt name arg result) (alist-cons 'recursive? #t result))) - (option '("list-transitive") #f #f + (option '(#\T "list-transitive") #f #f (lambda (opt name arg result) (alist-cons 'list-transitive? #t result))) @@ -159,7 +159,7 @@ (define (show-help) (display (G_ " -r, --recursive check the PACKAGE and its inputs for upgrades")) (display (G_ " - --list-transitive list all the packages that PACKAGE depends on")) + -T, --list-transitive list all the packages that PACKAGE depends on")) (newline) (display (G_ " --keyring=FILE use FILE as the keyring of upstream OpenPGP keys"))