From unknown Fri Jun 13 11:43:39 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#33454] [PATCH] describe: Add profile option. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Nov 2018 09:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33454@debbugs.gnu.org Cc: Oleg Pykhalov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154279083619126 (code B ref -1); Wed, 21 Nov 2018 09:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Nov 2018 09:00:36 +0000 Received: from localhost ([127.0.0.1]:37776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPON8-0004yN-Lq for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPON6-0004yB-IB for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPOMv-0003hs-Cl for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPOMv-0003hm-AC for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPOMs-0008TU-Cd for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPOMp-0003dm-7m for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:18 -0500 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:37023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPOMo-0003dH-Vc for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:15 -0500 Received: by mail-lj1-x241.google.com with SMTP id e5-v6so4125131lja.4 for ; Wed, 21 Nov 2018 01:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=164zPt+eBQapowx43baFOxcv0gHw9F+Q2b6Hml1KLpM=; b=esRXMRbIEpYVI7+TN8UUryR4H00kVP9/LZANFmxwZS6qL92Cs+Bex9DYJCym6wXksg d8NXuzPKpr96eivZDWTjIvIl/i5Lo8KfoxtOVOCEyV+cXAequxjD3gf9kr3RXAww+PCX QMUhQMqCwdxnWz/zJDlWkCqGj+4B19mn6TP/yK3nPIGDhtWDcEl/jvXoAHkNYC7HAFT/ 3337jEMqrDA173cb3iuocZ8ATueAnY3o5w5NyvfiPkKZ4Mje/xFmsCQBYIFigZ7cyVNE 9pAtWWAxdx+LRnRtJLGhJdMgAir9PujfF1t273LGag7RPME+bcDeJehtF9zSLJmtXIsV XOIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=164zPt+eBQapowx43baFOxcv0gHw9F+Q2b6Hml1KLpM=; b=HfUL7mZxVIfYHf2UCNHc7ao6DUFATwzTQVz6UIqIO0J04fdpPIRuxVuR47C6oH5Wt9 6YWeAaLsJZ1jkt38XAcEGLEhtt7dYsdenZHhov720sHVpE7UsWD60IRnCGgMG8DplR2D E9Xt7OIr7RAmTeCVKpy14XCNLNiJ/4jL+7qO80Ca23WiafCGOxT+oCCMJ+KjuPelV7yC 8IGQkH7A9DDPEmqcJNcKAKbLAzcniP3v5Gi+5lJPaN0+GJ9k+hoq7CKnR59XapzSDE3t waH7MHiy5630EHSmHw0VAGZ2sYGjiQQSpecxWtN0/mdhP2l0xrrvP0FjeaFp6BTMZfOZ PRQA== X-Gm-Message-State: AA+aEWa3A2wyH/Nsf2CEKVEgrpEyy5ty5Hpy0WYC4pd6CjK1bzGIPazF 8GAwz+CWFXRj5iUxRiQCu5O3bd0YW4A= X-Google-Smtp-Source: AFSGD/X4W1bYBeAmxmyqQ2Hm8tKUlwr23M5HYpVWgS4xF5sBTesGrgWONIYkQZ6eYSViDG9fZWcqkQ== X-Received: by 2002:a2e:2d4:: with SMTP id y81-v6mr3371601lje.62.1542790813251; Wed, 21 Nov 2018 01:00:13 -0800 (PST) Received: from localhost.localdomain (95-55-9-11.dynamic.avangarddsl.ru. [95.55.9.11]) by smtp.gmail.com with ESMTPSA id 11sm6517865lfq.89.2018.11.21.01.00.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 01:00:12 -0800 (PST) From: Oleg Pykhalov Date: Wed, 21 Nov 2018 11:59:59 +0300 Message-Id: <20181121085959.31035-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.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: -5.0 (-----) * guix/scripts/describe.scm (%options): Add profile option. (show-help): Document this. (display-checkout-info): Check for profile argument. * doc/guix.texi (Invoking guix describe): Document this. --- doc/guix.texi | 4 ++++ guix/scripts/describe.scm | 15 +++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 3e7b0a9f4..274d4dfd1 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3278,6 +3278,10 @@ guix pull}); @cindex JSON produce a list of channel specifications in JSON format. @end table + +@item --profile=@var{profile} +@itemx -p @var{profile} +Display information in the given @var{profile}. @end table @node Invoking guix pack diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm index 53195b423..251be8c21 100644 --- a/guix/scripts/describe.scm +++ b/guix/scripts/describe.scm @@ -42,6 +42,10 @@ (unless (member arg '("human" "channels" "json")) (leave (G_ "~a: unsupported output format~%") arg)) (alist-cons 'format (string->symbol arg) result))) + (option '(#\p "profile") #t #f + (lambda (opt name arg result) + (alist-cons 'profile (canonicalize-profile arg) + result))) (option '(#\h "help") #f #f (lambda args (show-help) @@ -59,6 +63,8 @@ Display information about the channels currently in use.\n")) (display (G_ " -f, --format=FORMAT display information in the given FORMAT")) + (display (G_ " + -p, --profile=PROFILE display information in the given PROFILE")) (newline) (display (G_ " -h, --help display this help and exit")) @@ -79,11 +85,11 @@ Display information about the channels currently in use.\n")) (format #t (G_ "~%;; warning: GUIX_PACKAGE_PATH=\"~a\"~%") string)))))) -(define (display-checkout-info fmt) +(define* (display-checkout-info fmt #:optional directory) "Display information about the current checkout according to FMT, a symbol denoting the requested format. Exit if the current directory does not lie within a Git checkout." - (let* ((program (car (command-line))) + (let* ((program (or directory (car (command-line)))) (directory (catch 'git-error (lambda () (repository-discover (dirname program))) @@ -171,9 +177,10 @@ in the format specified by FMT." name)) cons %default-options)) - (format (assq-ref opts 'format))) + (format (assq-ref opts 'format)) + (profile (or (assq-ref opts 'profile) (current-profile)))) (with-error-handling - (match (current-profile) + (match profile (#f (display-checkout-info format)) (profile -- 2.19.1 From unknown Fri Jun 13 11:43:39 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#33454] [PATCH] describe: Add profile option. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Nov 2018 09:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: 33454@debbugs.gnu.org Received: via spool by 33454-submit@debbugs.gnu.org id=B33454.154279326822891 (code B ref 33454); Wed, 21 Nov 2018 09:42:02 +0000 Received: (at 33454) by debbugs.gnu.org; 21 Nov 2018 09:41:08 +0000 Received: from localhost ([127.0.0.1]:37800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPP0O-0005x9-5T for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:41:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPP0M-0005wV-4d for 33454@debbugs.gnu.org; Wed, 21 Nov 2018 04:41:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPP0F-0000qk-Mu for 33454@debbugs.gnu.org; Wed, 21 Nov 2018 04:41:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPP0F-0000pn-Ag; Wed, 21 Nov 2018 04:40:59 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=47600 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gPP0F-0002my-2t; Wed, 21 Nov 2018 04:40:59 -0500 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20181121085959.31035-1-go.wigust@gmail.com> Date: Wed, 21 Nov 2018 10:40:56 +0100 In-Reply-To: <20181121085959.31035-1-go.wigust@gmail.com> (Oleg Pykhalov's message of "Wed, 21 Nov 2018 11:59:59 +0300") Message-ID: <87d0qyvkd3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.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: -6.0 (------) Hi Oleg, Oleg Pykhalov skribis: > * guix/scripts/describe.scm (%options): Add profile option. > (show-help): Document this. > (display-checkout-info): Check for profile argument. > * doc/guix.texi (Invoking guix describe): Document this. Good idea! > +@itemx -p @var{profile} > +Display information in the given @var{profile}. s/in the given/about/ > + (display (G_ " > + -p, --profile=3DPROFILE display information in the given PROFILE")) Same here. OK with these changes, thanks! Ludo=E2=80=99. From unknown Fri Jun 13 11:43:39 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#33454] [PATCH] describe: Add profile option. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Nov 2018 11:49:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: 33454@debbugs.gnu.org, 33454-done@debbugs.gnu.org Received: via spool by 33454-submit@debbugs.gnu.org id=B33454.154280090710345 (code B ref 33454); Wed, 21 Nov 2018 11:49:04 +0000 Received: (at 33454) by debbugs.gnu.org; 21 Nov 2018 11:48:27 +0000 Received: from localhost ([127.0.0.1]:37902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPQzb-0002gi-0c for submit@debbugs.gnu.org; Wed, 21 Nov 2018 06:48:27 -0500 Received: from mail-lf1-f50.google.com ([209.85.167.50]:34638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPQzY-0002gD-7a; Wed, 21 Nov 2018 06:48:25 -0500 Received: by mail-lf1-f50.google.com with SMTP id p6so3771251lfc.1; Wed, 21 Nov 2018 03:48:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yAj4Y1C/HjU7YVuBiXhJsanBbrs1PErQ79CvxF6K1dA=; b=PM/Bq/CF4WmMZ1KdZpmdKp33pmbhQBviWLdlKtXzPTEbxZtrpluuz9kUgrhA2slrBu Gp1WBPb93og+R/aWdy8HAbV+UVLJk5X9+A25nA9yXJdRDYZ84eQRvZJ9e2IOqPbGQRvZ NKf7dratqIK+mv9f8jqNQVijcEhKqhSWjukxbYd8EZx1BKBHT4jNL6nUTbSq7jxTvnOF NAcdzdSqwpCerT1gbpelX+tnWRQ8V4ysq7A9v+dG1Tvb/HHGC/8VRZijNB0+0notxKhj 5Z0OLx00WbnB+cfEsAcmPyzmVI/85AZhmFg4fm/yZtbZBfDOb4pwdwCsB0EKHHyy1AEl 8m7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=yAj4Y1C/HjU7YVuBiXhJsanBbrs1PErQ79CvxF6K1dA=; b=txyiX6H3w0ufCVnLOhpQLSvX9bAVRWW3i9SJXe2tRawZkRBeTsRsQYfsyJHxb3GcXJ LXnH7NaooEkIQAhK3k08M//qo/kGgNCt7oHoiaSb7tcqcShOeV72UV74QlBKVSqdhTUN QCQ1Oblia3MIl3utaGDf/djRfgFMBnsuo6C2/yxk9KCT0hCsch/mFW1/QJBBP8sfGt0f CfxG0CiMVyh1B4qZVcQyOKCRfkMezaTwfrMkFzmqi+KX+3wTxeaD4cp8wX81cgzzN3As 3hmYF8tRwhh+XBajBJFN8hhpMLTPiRFfaytx97wkDP7EVXmsiPMeXq4bzTzRWz6UY5z9 Qg7g== X-Gm-Message-State: AGRZ1gL8brREwfmqQLyO6bekzXRGCqAcMJrGN8W5C8KHssXUNO1f8F6T 2x4IWPbcIVZah3ihpnV9xRDDvFNyuDI= X-Google-Smtp-Source: AJdET5f+X//K72kwoDEVWGeqvaIsCyYft8FDH/9/ZVavKGiHI3nMTG5K4S955EAPijTW54Sdn+r6EQ== X-Received: by 2002:a19:5782:: with SMTP id l124mr3414291lfb.91.1542800898074; Wed, 21 Nov 2018 03:48:18 -0800 (PST) Received: from magnolia (95-55-9-11.dynamic.avangarddsl.ru. [95.55.9.11]) by smtp.gmail.com with ESMTPSA id 6sm7159924lfa.27.2018.11.21.03.48.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 03:48:17 -0800 (PST) From: Oleg Pykhalov References: <20181121085959.31035-1-go.wigust@gmail.com> <87d0qyvkd3.fsf@gnu.org> Date: Wed, 21 Nov 2018 14:48:12 +0300 In-Reply-To: <87d0qyvkd3.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 21 Nov 2018 10:40:56 +0100") Message-ID: <87sgzu7itf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludovic, ludo@gnu.org (Ludovic Court=C3=A8s) writes: [=E2=80=A6] > OK with these changes, thanks! Thanks, applied with your suggestions as 1255400faabfcf0ca1666d17f2f34ea0d49f6b1f Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAlv1RfwACgkQFn+OpQAa +py1WQ//Tq5TQk1I+uR3nKFYiobDCD9FUV1DY+c6mM6hzl/bHF6MHP+KR+gOVdxR m4Mu+rUNX8KcbgadMYwebAuprG1QAd/zVQ71EkJKFkm1DPYq+uLq3F+wZpjKQcPC AngjSvNZT2m+baKp/ACOrnoIPRdZyJoxphq/GR32dipJL+sBTa8nbyaI9vYf93it vGJ+rRAjEn3xa/U7+VtZ7KxjzLIkZKYQdg2h52KX9eLGSNGmAO9dUEdrG++h/750 DBQLmGYDhhy96NUnaSEpATEZSkBDJyJKj6R3ciLkF5Gl27dL0xJMAu9xBBYF7idU QPsXmPE6HT+NNi3aGcdeCcWnjnhRN4GVTCIIOfB2vwxVGe3wH3oY4wBF3/ROXHA4 AqcA8vNLfgbSMi49PGM6axA2fTE4dfhVtSIgi3K4rWeGN3Ag0UlgVSnkuBONoW6Q EVPJ9HawERnu1rcFlqqe1C7YwKSXCPkb2fu9FIMbgsgNjA4ryj81JCdgz2sTOIuM dJfDQiaStHLtsptbPrILrr+mOHMR9PW92d/2WaqnlbP1BAPmkNvgzkGWR9gV0GrH DLoR+YrKilnFrehq4Fnt3h+/e1Jtqu8vkpzdV7rWEIqwzpCnsNOnU0VJBeejavFR X72JMzwtNeT9bLXpOqUjOp4suxaeRgiKchGhST/NCDBDIQS36iQ= =nabM -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 11:43:39 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: Oleg Pykhalov Subject: bug#33454: closed (Re: [bug#33454] [PATCH] describe: Add profile option.) Message-ID: References: <87sgzu7itf.fsf@gmail.com> <20181121085959.31035-1-go.wigust@gmail.com> X-Gnu-PR-Message: they-closed 33454 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 33454@debbugs.gnu.org Date: Wed, 21 Nov 2018 11:49:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1542800945-10417-1" This is a multi-part message in MIME format... ------------=_1542800945-10417-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33454: [PATCH] describe: Add profile option. 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 33454@debbugs.gnu.org. --=20 33454: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33454 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1542800945-10417-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33454-done) by debbugs.gnu.org; 21 Nov 2018 11:48:27 +0000 Received: from localhost ([127.0.0.1]:37900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPQza-0002gb-PN for submit@debbugs.gnu.org; Wed, 21 Nov 2018 06:48:26 -0500 Received: from mail-lf1-f50.google.com ([209.85.167.50]:34638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPQzY-0002gD-7a; Wed, 21 Nov 2018 06:48:25 -0500 Received: by mail-lf1-f50.google.com with SMTP id p6so3771251lfc.1; Wed, 21 Nov 2018 03:48:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yAj4Y1C/HjU7YVuBiXhJsanBbrs1PErQ79CvxF6K1dA=; b=PM/Bq/CF4WmMZ1KdZpmdKp33pmbhQBviWLdlKtXzPTEbxZtrpluuz9kUgrhA2slrBu Gp1WBPb93og+R/aWdy8HAbV+UVLJk5X9+A25nA9yXJdRDYZ84eQRvZJ9e2IOqPbGQRvZ NKf7dratqIK+mv9f8jqNQVijcEhKqhSWjukxbYd8EZx1BKBHT4jNL6nUTbSq7jxTvnOF NAcdzdSqwpCerT1gbpelX+tnWRQ8V4ysq7A9v+dG1Tvb/HHGC/8VRZijNB0+0notxKhj 5Z0OLx00WbnB+cfEsAcmPyzmVI/85AZhmFg4fm/yZtbZBfDOb4pwdwCsB0EKHHyy1AEl 8m7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=yAj4Y1C/HjU7YVuBiXhJsanBbrs1PErQ79CvxF6K1dA=; b=txyiX6H3w0ufCVnLOhpQLSvX9bAVRWW3i9SJXe2tRawZkRBeTsRsQYfsyJHxb3GcXJ LXnH7NaooEkIQAhK3k08M//qo/kGgNCt7oHoiaSb7tcqcShOeV72UV74QlBKVSqdhTUN QCQ1Oblia3MIl3utaGDf/djRfgFMBnsuo6C2/yxk9KCT0hCsch/mFW1/QJBBP8sfGt0f CfxG0CiMVyh1B4qZVcQyOKCRfkMezaTwfrMkFzmqi+KX+3wTxeaD4cp8wX81cgzzN3As 3hmYF8tRwhh+XBajBJFN8hhpMLTPiRFfaytx97wkDP7EVXmsiPMeXq4bzTzRWz6UY5z9 Qg7g== X-Gm-Message-State: AGRZ1gL8brREwfmqQLyO6bekzXRGCqAcMJrGN8W5C8KHssXUNO1f8F6T 2x4IWPbcIVZah3ihpnV9xRDDvFNyuDI= X-Google-Smtp-Source: AJdET5f+X//K72kwoDEVWGeqvaIsCyYft8FDH/9/ZVavKGiHI3nMTG5K4S955EAPijTW54Sdn+r6EQ== X-Received: by 2002:a19:5782:: with SMTP id l124mr3414291lfb.91.1542800898074; Wed, 21 Nov 2018 03:48:18 -0800 (PST) Received: from magnolia (95-55-9-11.dynamic.avangarddsl.ru. [95.55.9.11]) by smtp.gmail.com with ESMTPSA id 6sm7159924lfa.27.2018.11.21.03.48.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 03:48:17 -0800 (PST) From: Oleg Pykhalov To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#33454] [PATCH] describe: Add profile option. References: <20181121085959.31035-1-go.wigust@gmail.com> <87d0qyvkd3.fsf@gnu.org> Date: Wed, 21 Nov 2018 14:48:12 +0300 In-Reply-To: <87d0qyvkd3.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 21 Nov 2018 10:40:56 +0100") Message-ID: <87sgzu7itf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33454-done Cc: 33454@debbugs.gnu.org, 33454-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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludovic, ludo@gnu.org (Ludovic Court=C3=A8s) writes: [=E2=80=A6] > OK with these changes, thanks! Thanks, applied with your suggestions as 1255400faabfcf0ca1666d17f2f34ea0d49f6b1f Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAlv1RfwACgkQFn+OpQAa +py1WQ//Tq5TQk1I+uR3nKFYiobDCD9FUV1DY+c6mM6hzl/bHF6MHP+KR+gOVdxR m4Mu+rUNX8KcbgadMYwebAuprG1QAd/zVQ71EkJKFkm1DPYq+uLq3F+wZpjKQcPC AngjSvNZT2m+baKp/ACOrnoIPRdZyJoxphq/GR32dipJL+sBTa8nbyaI9vYf93it vGJ+rRAjEn3xa/U7+VtZ7KxjzLIkZKYQdg2h52KX9eLGSNGmAO9dUEdrG++h/750 DBQLmGYDhhy96NUnaSEpATEZSkBDJyJKj6R3ciLkF5Gl27dL0xJMAu9xBBYF7idU QPsXmPE6HT+NNi3aGcdeCcWnjnhRN4GVTCIIOfB2vwxVGe3wH3oY4wBF3/ROXHA4 AqcA8vNLfgbSMi49PGM6axA2fTE4dfhVtSIgi3K4rWeGN3Ag0UlgVSnkuBONoW6Q EVPJ9HawERnu1rcFlqqe1C7YwKSXCPkb2fu9FIMbgsgNjA4ryj81JCdgz2sTOIuM dJfDQiaStHLtsptbPrILrr+mOHMR9PW92d/2WaqnlbP1BAPmkNvgzkGWR9gV0GrH DLoR+YrKilnFrehq4Fnt3h+/e1Jtqu8vkpzdV7rWEIqwzpCnsNOnU0VJBeejavFR X72JMzwtNeT9bLXpOqUjOp4suxaeRgiKchGhST/NCDBDIQS36iQ= =nabM -----END PGP SIGNATURE----- --=-=-=-- ------------=_1542800945-10417-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Nov 2018 09:00:36 +0000 Received: from localhost ([127.0.0.1]:37776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPON8-0004yN-Lq for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPON6-0004yB-IB for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPOMv-0003hs-Cl for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPOMv-0003hm-AC for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPOMs-0008TU-Cd for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPOMp-0003dm-7m for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:18 -0500 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:37023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPOMo-0003dH-Vc for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:15 -0500 Received: by mail-lj1-x241.google.com with SMTP id e5-v6so4125131lja.4 for ; Wed, 21 Nov 2018 01:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=164zPt+eBQapowx43baFOxcv0gHw9F+Q2b6Hml1KLpM=; b=esRXMRbIEpYVI7+TN8UUryR4H00kVP9/LZANFmxwZS6qL92Cs+Bex9DYJCym6wXksg d8NXuzPKpr96eivZDWTjIvIl/i5Lo8KfoxtOVOCEyV+cXAequxjD3gf9kr3RXAww+PCX QMUhQMqCwdxnWz/zJDlWkCqGj+4B19mn6TP/yK3nPIGDhtWDcEl/jvXoAHkNYC7HAFT/ 3337jEMqrDA173cb3iuocZ8ATueAnY3o5w5NyvfiPkKZ4Mje/xFmsCQBYIFigZ7cyVNE 9pAtWWAxdx+LRnRtJLGhJdMgAir9PujfF1t273LGag7RPME+bcDeJehtF9zSLJmtXIsV XOIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=164zPt+eBQapowx43baFOxcv0gHw9F+Q2b6Hml1KLpM=; b=HfUL7mZxVIfYHf2UCNHc7ao6DUFATwzTQVz6UIqIO0J04fdpPIRuxVuR47C6oH5Wt9 6YWeAaLsJZ1jkt38XAcEGLEhtt7dYsdenZHhov720sHVpE7UsWD60IRnCGgMG8DplR2D E9Xt7OIr7RAmTeCVKpy14XCNLNiJ/4jL+7qO80Ca23WiafCGOxT+oCCMJ+KjuPelV7yC 8IGQkH7A9DDPEmqcJNcKAKbLAzcniP3v5Gi+5lJPaN0+GJ9k+hoq7CKnR59XapzSDE3t waH7MHiy5630EHSmHw0VAGZ2sYGjiQQSpecxWtN0/mdhP2l0xrrvP0FjeaFp6BTMZfOZ PRQA== X-Gm-Message-State: AA+aEWa3A2wyH/Nsf2CEKVEgrpEyy5ty5Hpy0WYC4pd6CjK1bzGIPazF 8GAwz+CWFXRj5iUxRiQCu5O3bd0YW4A= X-Google-Smtp-Source: AFSGD/X4W1bYBeAmxmyqQ2Hm8tKUlwr23M5HYpVWgS4xF5sBTesGrgWONIYkQZ6eYSViDG9fZWcqkQ== X-Received: by 2002:a2e:2d4:: with SMTP id y81-v6mr3371601lje.62.1542790813251; Wed, 21 Nov 2018 01:00:13 -0800 (PST) Received: from localhost.localdomain (95-55-9-11.dynamic.avangarddsl.ru. [95.55.9.11]) by smtp.gmail.com with ESMTPSA id 11sm6517865lfq.89.2018.11.21.01.00.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 01:00:12 -0800 (PST) From: Oleg Pykhalov To: guix-patches@gnu.org Subject: [PATCH] describe: Add profile option. Date: Wed, 21 Nov 2018 11:59:59 +0300 Message-Id: <20181121085959.31035-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Oleg Pykhalov 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: -5.0 (-----) * guix/scripts/describe.scm (%options): Add profile option. (show-help): Document this. (display-checkout-info): Check for profile argument. * doc/guix.texi (Invoking guix describe): Document this. --- doc/guix.texi | 4 ++++ guix/scripts/describe.scm | 15 +++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 3e7b0a9f4..274d4dfd1 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3278,6 +3278,10 @@ guix pull}); @cindex JSON produce a list of channel specifications in JSON format. @end table + +@item --profile=@var{profile} +@itemx -p @var{profile} +Display information in the given @var{profile}. @end table @node Invoking guix pack diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm index 53195b423..251be8c21 100644 --- a/guix/scripts/describe.scm +++ b/guix/scripts/describe.scm @@ -42,6 +42,10 @@ (unless (member arg '("human" "channels" "json")) (leave (G_ "~a: unsupported output format~%") arg)) (alist-cons 'format (string->symbol arg) result))) + (option '(#\p "profile") #t #f + (lambda (opt name arg result) + (alist-cons 'profile (canonicalize-profile arg) + result))) (option '(#\h "help") #f #f (lambda args (show-help) @@ -59,6 +63,8 @@ Display information about the channels currently in use.\n")) (display (G_ " -f, --format=FORMAT display information in the given FORMAT")) + (display (G_ " + -p, --profile=PROFILE display information in the given PROFILE")) (newline) (display (G_ " -h, --help display this help and exit")) @@ -79,11 +85,11 @@ Display information about the channels currently in use.\n")) (format #t (G_ "~%;; warning: GUIX_PACKAGE_PATH=\"~a\"~%") string)))))) -(define (display-checkout-info fmt) +(define* (display-checkout-info fmt #:optional directory) "Display information about the current checkout according to FMT, a symbol denoting the requested format. Exit if the current directory does not lie within a Git checkout." - (let* ((program (car (command-line))) + (let* ((program (or directory (car (command-line)))) (directory (catch 'git-error (lambda () (repository-discover (dirname program))) @@ -171,9 +177,10 @@ in the format specified by FMT." name)) cons %default-options)) - (format (assq-ref opts 'format))) + (format (assq-ref opts 'format)) + (profile (or (assq-ref opts 'profile) (current-profile)))) (with-error-handling - (match (current-profile) + (match profile (#f (display-checkout-info format)) (profile -- 2.19.1 ------------=_1542800945-10417-1-- From unknown Fri Jun 13 11:43:39 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#33454] [PATCH] describe: Delete directory argument from 'display-checkout-info'. References: <20181121085959.31035-1-go.wigust@gmail.com> In-Reply-To: <20181121085959.31035-1-go.wigust@gmail.com> Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Nov 2018 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33454@debbugs.gnu.org Cc: Oleg Pykhalov Received: via spool by 33454-submit@debbugs.gnu.org id=B33454.15428104814056 (code B ref 33454); Wed, 21 Nov 2018 14:28:02 +0000 Received: (at 33454) by debbugs.gnu.org; 21 Nov 2018 14:28:01 +0000 Received: from localhost ([127.0.0.1]:37999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPTU0-00013L-Tg for submit@debbugs.gnu.org; Wed, 21 Nov 2018 09:28:01 -0500 Received: from mail-lf1-f52.google.com ([209.85.167.52]:37040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPTTy-000139-EM for 33454@debbugs.gnu.org; Wed, 21 Nov 2018 09:27:58 -0500 Received: by mail-lf1-f52.google.com with SMTP id p17so4126375lfh.4 for <33454@debbugs.gnu.org>; Wed, 21 Nov 2018 06:27:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZJhURWkPfGegIfUwFTBwQzDYEOzs9B26jnEY46w/iWY=; b=iUlsdi9yp01M6MIKq6MGjU0ddDFquH6/NZcR2XPmyZrzy95CzkWR2hEOVcIIIIvck7 tQbvbH9hOcFkNCMqp9U10jvzqH1++c66x2xGDRp1WNPHxDUQ86PFuQQyGdfIJPyhEjqA XFUB51INXCCdBhlGB0ZeC88e6AxREb3dOHaVvfGUDSk/lEnp4KegAZQ4gUPFodHMmFjT SPb2d0MvbMUUZi/h00HtDu/PODTPkpifrOFM67iLB5ZO9qz0YNUwHE7fuEGVhRF6Jysz oeKiKdpKvUOVuEeT9OmiCLyY5liW6Cm98jYv0HFi82kqkDTD4/bsdwyZlEheHaM3PsT0 NICg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZJhURWkPfGegIfUwFTBwQzDYEOzs9B26jnEY46w/iWY=; b=T3op7RTYEYRpJsf/tO6dj1CW7kmYMIvL5HEsmxHp2jJtT/dr8OTygd2B0WRI5FoJFU i7/ZM9+SoSMxoCd4wR9Z1JbHwpOb+GlqYnkIpqlA7q6Be3vYjDE8yPTRLBQ74YwtZb1P fX3Lz6jtjyQjhwMk1IMlbELE0ZY5VW+26RLAmYOddloKPH7pJQ8lMDAA4ysxr697DGvD d7wpWYMtePc9fYHy9ec4Ge0SxR/4LuvRgeKmPBergD0tVrR1hx2AXkaOZq3LRGjcGkHS IFTTgowM4RdzSDycNWEz4M1H3waeI/UXmLDU0ghBTIXL6oqIOc/Dcrmzo788DtjdiNJe 4I7w== X-Gm-Message-State: AGRZ1gJM6FY9VwBCCFpUpDkQuhg0fHM9vEPS0NyEbfmU/s2NKTa3jMAX aZOE10L/3tjJs3xy6fsL7LlVSTQVMgY= X-Google-Smtp-Source: AJdET5fapNG0UmGTkFqEBW4zuL7T4+eGH9S1ahCHfJNhcOPtZl4R3dnCSYnA0JFsmbBU3Ux6vkV2lQ== X-Received: by 2002:a19:7d42:: with SMTP id y63mr3786099lfc.47.1542810472226; Wed, 21 Nov 2018 06:27:52 -0800 (PST) Received: from localhost.localdomain (95-55-9-11.dynamic.avangarddsl.ru. [95.55.9.11]) by smtp.gmail.com with ESMTPSA id n16sm1891014lfl.35.2018.11.21.06.27.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 06:27:51 -0800 (PST) From: Oleg Pykhalov Date: Wed, 21 Nov 2018 17:27:06 +0300 Message-Id: <20181121142706.21058-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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 (-) This commit is a following 1255400faabfcf0ca1666d17f2f34ea0d49f6b1f which added unused optional 'directory' argument. * guix/scripts/describe.scm (display-checkout-info): Delete directory argument. --- guix/scripts/describe.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm index d817d7f7c..761f212f0 100644 --- a/guix/scripts/describe.scm +++ b/guix/scripts/describe.scm @@ -84,11 +84,11 @@ Display information about the channels currently in use.\n")) (format #t (G_ "~%;; warning: GUIX_PACKAGE_PATH=\"~a\"~%") string)))))) -(define* (display-checkout-info fmt #:optional directory) +(define (display-checkout-info fmt) "Display information about the current checkout according to FMT, a symbol denoting the requested format. Exit if the current directory does not lie within a Git checkout." - (let* ((program (or directory (car (command-line)))) + (let* ((program (car (command-line))) (directory (catch 'git-error (lambda () (repository-discover (dirname program))) -- 2.19.1 From unknown Fri Jun 13 11:43:39 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#33454] [PATCH] describe: Delete directory argument from 'display-checkout-info'. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Nov 2018 10:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: 33454@debbugs.gnu.org Received: via spool by 33454-submit@debbugs.gnu.org id=B33454.154331434616542 (code B ref 33454); Tue, 27 Nov 2018 10:26:01 +0000 Received: (at 33454) by debbugs.gnu.org; 27 Nov 2018 10:25:46 +0000 Received: from localhost ([127.0.0.1]:50466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRaYr-0004Ik-Q4 for submit@debbugs.gnu.org; Tue, 27 Nov 2018 05:25:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRaYp-0004IU-UK for 33454@debbugs.gnu.org; Tue, 27 Nov 2018 05:25:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRaYk-0007AS-6x for 33454@debbugs.gnu.org; Tue, 27 Nov 2018 05:25:38 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRaYk-0007AM-48; Tue, 27 Nov 2018 05:25:38 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60152 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gRaYj-0006is-Rr; Tue, 27 Nov 2018 05:25:38 -0500 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20181121085959.31035-1-go.wigust@gmail.com> <20181121142706.21058-1-go.wigust@gmail.com> Date: Tue, 27 Nov 2018 11:25:36 +0100 In-Reply-To: <20181121142706.21058-1-go.wigust@gmail.com> (Oleg Pykhalov's message of "Wed, 21 Nov 2018 17:27:06 +0300") Message-ID: <87h8g2byvz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.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: -6.0 (------) Oleg Pykhalov skribis: > This commit is a following 1255400faabfcf0ca1666d17f2f34ea0d49f6b1f which > added unused optional 'directory' argument. > > * guix/scripts/describe.scm (display-checkout-info): Delete directory > argument. LGTM! I had overlooked this=E2=80=A6 Thanks, Ludo=E2=80=99. From unknown Fri Jun 13 11:43:39 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#33454] [PATCH] describe: Delete directory argument from 'display-checkout-info'. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Nov 2018 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: 33454@debbugs.gnu.org, 33454-done@debbugs.gnu.org Received: via spool by 33454-submit@debbugs.gnu.org id=B33454.15433388451432 (code B ref 33454); Tue, 27 Nov 2018 17:15:02 +0000 Received: (at 33454) by debbugs.gnu.org; 27 Nov 2018 17:14:05 +0000 Received: from localhost ([127.0.0.1]:52471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRgvz-0000Mt-QA for submit@debbugs.gnu.org; Tue, 27 Nov 2018 12:14:04 -0500 Received: from mail-lf1-f44.google.com ([209.85.167.44]:46611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRgvx-0000M5-3S; Tue, 27 Nov 2018 12:14:01 -0500 Received: by mail-lf1-f44.google.com with SMTP id f23so17013383lfc.13; Tue, 27 Nov 2018 09:14:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=bwGGKzEphsXw+tdJ8dbxUTLkDBgUIDFPMJUZINdbGpU=; b=oeuGhEGhxQLQfhy8xtbXQlhQ/5dA9AC6dvsRRnJjMlslHv6wy+o7xMuKoQ3AsMU0gS LhY7g0ekgbKCOaXYL7dj7WzXNyKjOLQZgE3ZeeUz/9wcMd0OUSZdDNzmrAmDNoVQ+WKZ cxnkrtCWshh9nCAvN3vhNHLnv6RyWnrsx4qKPUWwZRQsBr+6VEiaqX8enjrTI6EuZqxb QDpjUdm/p3xx7FUT8Xc8fhw9P3i82ghnQ478Gsl8Ul+/RmC6nn6rruIB+YC7AcBE89ya Lle6eYL5CXU5Fk/YILvsod/KD2DWIcRL4w5QsiJ1KFXjoqKdbPiYikU3VX5FTLrSyiIu OPOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=bwGGKzEphsXw+tdJ8dbxUTLkDBgUIDFPMJUZINdbGpU=; b=PI1c1I09YfYUV3Qdzr4mPfxKM3JJ9mMuutnE5ZR21r2BzKgIGIDwjFmAfT++lxCJrb ozbqeMQ8XbzK7m2P6cJufWtU7CQqVbzgAk3bxgzicyeF4J/Z2ptIPkM+6ZHtZ2f0jWS9 BOG7VS8jr5Rxtw8zjV7qTHotPLfLfPWrkoOgjEuJhrCpEd/cp4neDtcqazSCowalFpAX WrPEJDdBhMNRn+29VoMsk89QEfS3OZWIUOCYQ7ldw4CbYq2e5alQiwDrWSCQksPp4Kve 0TGvgsuc0IrHoDJP1tjwLM+oBKqNwgmHB/57dgB9bxeNIjcPod0F2TzchlJaP1+JQ2fa PaUA== X-Gm-Message-State: AGRZ1gKX9AniQsSLe132bLA/s3fxLpgTi5nYelYf9LFxGRxPGNlrv1eh ebaDI+2Xg4qEqRMoPCqGPD6775oQd3176w== X-Google-Smtp-Source: AJdET5cfojGMTmWGTFFcVe1bC66VpPwxteeXQ9AZS0RpyT49SbmlGL1HzLxa+qPwaQg3mqC20vTMgw== X-Received: by 2002:a19:a7c1:: with SMTP id q184mr18369104lfe.4.1543338834748; Tue, 27 Nov 2018 09:13:54 -0800 (PST) Received: from magnolia (92-100-253-159.dynamic.avangarddsl.ru. [92.100.253.159]) by smtp.gmail.com with ESMTPSA id m14-v6sm652762lji.29.2018.11.27.09.13.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 09:13:53 -0800 (PST) From: Oleg Pykhalov References: <20181121085959.31035-1-go.wigust@gmail.com> <20181121142706.21058-1-go.wigust@gmail.com> <87h8g2byvz.fsf@gnu.org> Date: Tue, 27 Nov 2018 20:13:50 +0300 In-Reply-To: <87h8g2byvz.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 27 Nov 2018 11:25:36 +0100") Message-ID: <871s768mup.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Oleg Pykhalov skribis: > >> This commit is a following 1255400faabfcf0ca1666d17f2f34ea0d49f6b1f which >> added unused optional 'directory' argument. >> >> * guix/scripts/describe.scm (display-checkout-info): Delete directory >> argument. > > LGTM! OK, pushed as 01262f1ece37d5ae9af56c1de6c4eefc758f35ba Thanks, Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAlv9e04ACgkQFn+OpQAa +pwxMA//YpW/9B024ZQcViB776x8aYNVpRNhoKW8twKSpZpI3bb8hrv+sWSl//D4 Sk5Y9X42bzGm2/uGKAcKeXBm5oXX6RmhuoFv4f9xcoMgcIP8DbTQl5mxtec3TfFb DjMuD0u1D1awWjoDHKH12WmXKoFeUGkuLDLpUUnam9nOWyxVJ+PAIsI4uN88UDgW zQJXyq0aKmTip5mqxqIjqqcSd1b3UvEUGIIVkovDJgputn4/ACrRjOknP/ESWb7Y KjHA16U6uKbvaQc0i+y+g6nbOjGJ2htomnR9S6kj9HS5PvlZxrH1AOGNZ3geZRX1 h1EERUsEku4oNq1Gg9bWcxv9NUddBwseE6ESSPfehncAhSDQr/Af56U+DC6pEukP 0V2Rox6W6E9AjWDHeQWqLUEf9cMxS8lwPHeotbkeMjLk1c2E4/0rThsIkYOX2/lu X6gCAuLPXGBXMaSZ5JJ+CKqqf7styKkL+nhaeDIVUA+M7OBKYseYFhLZujJKVVIq /tUnk4ER5ZP69cEFfeBlL/AB2LN9XbigxEQN0Myzi9IDaL5Ltse9XLypvrjKzMjG Bp4e1BIUJYvbBuG5409nNdA1T2KG1fXZfAbQ5s/vz9XUTQmokhR2UHNyivF41PAe eCzmpMd9SygL+Nh2QQMGRH4nlbOx0coe3SKJwspriK4abHLE5io= =NBfd -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 11:43:39 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: Oleg Pykhalov Subject: bug#33454: closed (Re: [bug#33454] [PATCH] describe: Delete directory argument from 'display-checkout-info'.) Message-ID: References: <871s768mup.fsf@gmail.com> <20181121085959.31035-1-go.wigust@gmail.com> X-Gnu-PR-Message: they-closed 33454 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 33454@debbugs.gnu.org Date: Tue, 27 Nov 2018 17:15:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1543338903-1590-1" This is a multi-part message in MIME format... ------------=_1543338903-1590-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33454: [PATCH] describe: Add profile option. 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 33454@debbugs.gnu.org. --=20 33454: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33454 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1543338903-1590-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33454-done) by debbugs.gnu.org; 27 Nov 2018 17:14:03 +0000 Received: from localhost ([127.0.0.1]:52469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRgvy-0000Mp-Uw for submit@debbugs.gnu.org; Tue, 27 Nov 2018 12:14:03 -0500 Received: from mail-lf1-f44.google.com ([209.85.167.44]:46611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRgvx-0000M5-3S; Tue, 27 Nov 2018 12:14:01 -0500 Received: by mail-lf1-f44.google.com with SMTP id f23so17013383lfc.13; Tue, 27 Nov 2018 09:14:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=bwGGKzEphsXw+tdJ8dbxUTLkDBgUIDFPMJUZINdbGpU=; b=oeuGhEGhxQLQfhy8xtbXQlhQ/5dA9AC6dvsRRnJjMlslHv6wy+o7xMuKoQ3AsMU0gS LhY7g0ekgbKCOaXYL7dj7WzXNyKjOLQZgE3ZeeUz/9wcMd0OUSZdDNzmrAmDNoVQ+WKZ cxnkrtCWshh9nCAvN3vhNHLnv6RyWnrsx4qKPUWwZRQsBr+6VEiaqX8enjrTI6EuZqxb QDpjUdm/p3xx7FUT8Xc8fhw9P3i82ghnQ478Gsl8Ul+/RmC6nn6rruIB+YC7AcBE89ya Lle6eYL5CXU5Fk/YILvsod/KD2DWIcRL4w5QsiJ1KFXjoqKdbPiYikU3VX5FTLrSyiIu OPOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=bwGGKzEphsXw+tdJ8dbxUTLkDBgUIDFPMJUZINdbGpU=; b=PI1c1I09YfYUV3Qdzr4mPfxKM3JJ9mMuutnE5ZR21r2BzKgIGIDwjFmAfT++lxCJrb ozbqeMQ8XbzK7m2P6cJufWtU7CQqVbzgAk3bxgzicyeF4J/Z2ptIPkM+6ZHtZ2f0jWS9 BOG7VS8jr5Rxtw8zjV7qTHotPLfLfPWrkoOgjEuJhrCpEd/cp4neDtcqazSCowalFpAX WrPEJDdBhMNRn+29VoMsk89QEfS3OZWIUOCYQ7ldw4CbYq2e5alQiwDrWSCQksPp4Kve 0TGvgsuc0IrHoDJP1tjwLM+oBKqNwgmHB/57dgB9bxeNIjcPod0F2TzchlJaP1+JQ2fa PaUA== X-Gm-Message-State: AGRZ1gKX9AniQsSLe132bLA/s3fxLpgTi5nYelYf9LFxGRxPGNlrv1eh ebaDI+2Xg4qEqRMoPCqGPD6775oQd3176w== X-Google-Smtp-Source: AJdET5cfojGMTmWGTFFcVe1bC66VpPwxteeXQ9AZS0RpyT49SbmlGL1HzLxa+qPwaQg3mqC20vTMgw== X-Received: by 2002:a19:a7c1:: with SMTP id q184mr18369104lfe.4.1543338834748; Tue, 27 Nov 2018 09:13:54 -0800 (PST) Received: from magnolia (92-100-253-159.dynamic.avangarddsl.ru. [92.100.253.159]) by smtp.gmail.com with ESMTPSA id m14-v6sm652762lji.29.2018.11.27.09.13.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 09:13:53 -0800 (PST) From: Oleg Pykhalov To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#33454] [PATCH] describe: Delete directory argument from 'display-checkout-info'. References: <20181121085959.31035-1-go.wigust@gmail.com> <20181121142706.21058-1-go.wigust@gmail.com> <87h8g2byvz.fsf@gnu.org> Date: Tue, 27 Nov 2018 20:13:50 +0300 In-Reply-To: <87h8g2byvz.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 27 Nov 2018 11:25:36 +0100") Message-ID: <871s768mup.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33454-done Cc: 33454@debbugs.gnu.org, 33454-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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Oleg Pykhalov skribis: > >> This commit is a following 1255400faabfcf0ca1666d17f2f34ea0d49f6b1f which >> added unused optional 'directory' argument. >> >> * guix/scripts/describe.scm (display-checkout-info): Delete directory >> argument. > > LGTM! OK, pushed as 01262f1ece37d5ae9af56c1de6c4eefc758f35ba Thanks, Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAlv9e04ACgkQFn+OpQAa +pwxMA//YpW/9B024ZQcViB776x8aYNVpRNhoKW8twKSpZpI3bb8hrv+sWSl//D4 Sk5Y9X42bzGm2/uGKAcKeXBm5oXX6RmhuoFv4f9xcoMgcIP8DbTQl5mxtec3TfFb DjMuD0u1D1awWjoDHKH12WmXKoFeUGkuLDLpUUnam9nOWyxVJ+PAIsI4uN88UDgW zQJXyq0aKmTip5mqxqIjqqcSd1b3UvEUGIIVkovDJgputn4/ACrRjOknP/ESWb7Y KjHA16U6uKbvaQc0i+y+g6nbOjGJ2htomnR9S6kj9HS5PvlZxrH1AOGNZ3geZRX1 h1EERUsEku4oNq1Gg9bWcxv9NUddBwseE6ESSPfehncAhSDQr/Af56U+DC6pEukP 0V2Rox6W6E9AjWDHeQWqLUEf9cMxS8lwPHeotbkeMjLk1c2E4/0rThsIkYOX2/lu X6gCAuLPXGBXMaSZ5JJ+CKqqf7styKkL+nhaeDIVUA+M7OBKYseYFhLZujJKVVIq /tUnk4ER5ZP69cEFfeBlL/AB2LN9XbigxEQN0Myzi9IDaL5Ltse9XLypvrjKzMjG Bp4e1BIUJYvbBuG5409nNdA1T2KG1fXZfAbQ5s/vz9XUTQmokhR2UHNyivF41PAe eCzmpMd9SygL+Nh2QQMGRH4nlbOx0coe3SKJwspriK4abHLE5io= =NBfd -----END PGP SIGNATURE----- --=-=-=-- ------------=_1543338903-1590-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Nov 2018 09:00:36 +0000 Received: from localhost ([127.0.0.1]:37776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPON8-0004yN-Lq for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPON6-0004yB-IB for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPOMv-0003hs-Cl for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPOMv-0003hm-AC for submit@debbugs.gnu.org; Wed, 21 Nov 2018 04:00:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPOMs-0008TU-Cd for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPOMp-0003dm-7m for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:18 -0500 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:37023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPOMo-0003dH-Vc for guix-patches@gnu.org; Wed, 21 Nov 2018 04:00:15 -0500 Received: by mail-lj1-x241.google.com with SMTP id e5-v6so4125131lja.4 for ; Wed, 21 Nov 2018 01:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=164zPt+eBQapowx43baFOxcv0gHw9F+Q2b6Hml1KLpM=; b=esRXMRbIEpYVI7+TN8UUryR4H00kVP9/LZANFmxwZS6qL92Cs+Bex9DYJCym6wXksg d8NXuzPKpr96eivZDWTjIvIl/i5Lo8KfoxtOVOCEyV+cXAequxjD3gf9kr3RXAww+PCX QMUhQMqCwdxnWz/zJDlWkCqGj+4B19mn6TP/yK3nPIGDhtWDcEl/jvXoAHkNYC7HAFT/ 3337jEMqrDA173cb3iuocZ8ATueAnY3o5w5NyvfiPkKZ4Mje/xFmsCQBYIFigZ7cyVNE 9pAtWWAxdx+LRnRtJLGhJdMgAir9PujfF1t273LGag7RPME+bcDeJehtF9zSLJmtXIsV XOIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=164zPt+eBQapowx43baFOxcv0gHw9F+Q2b6Hml1KLpM=; b=HfUL7mZxVIfYHf2UCNHc7ao6DUFATwzTQVz6UIqIO0J04fdpPIRuxVuR47C6oH5Wt9 6YWeAaLsJZ1jkt38XAcEGLEhtt7dYsdenZHhov720sHVpE7UsWD60IRnCGgMG8DplR2D E9Xt7OIr7RAmTeCVKpy14XCNLNiJ/4jL+7qO80Ca23WiafCGOxT+oCCMJ+KjuPelV7yC 8IGQkH7A9DDPEmqcJNcKAKbLAzcniP3v5Gi+5lJPaN0+GJ9k+hoq7CKnR59XapzSDE3t waH7MHiy5630EHSmHw0VAGZ2sYGjiQQSpecxWtN0/mdhP2l0xrrvP0FjeaFp6BTMZfOZ PRQA== X-Gm-Message-State: AA+aEWa3A2wyH/Nsf2CEKVEgrpEyy5ty5Hpy0WYC4pd6CjK1bzGIPazF 8GAwz+CWFXRj5iUxRiQCu5O3bd0YW4A= X-Google-Smtp-Source: AFSGD/X4W1bYBeAmxmyqQ2Hm8tKUlwr23M5HYpVWgS4xF5sBTesGrgWONIYkQZ6eYSViDG9fZWcqkQ== X-Received: by 2002:a2e:2d4:: with SMTP id y81-v6mr3371601lje.62.1542790813251; Wed, 21 Nov 2018 01:00:13 -0800 (PST) Received: from localhost.localdomain (95-55-9-11.dynamic.avangarddsl.ru. [95.55.9.11]) by smtp.gmail.com with ESMTPSA id 11sm6517865lfq.89.2018.11.21.01.00.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 01:00:12 -0800 (PST) From: Oleg Pykhalov To: guix-patches@gnu.org Subject: [PATCH] describe: Add profile option. Date: Wed, 21 Nov 2018 11:59:59 +0300 Message-Id: <20181121085959.31035-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Oleg Pykhalov 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: -5.0 (-----) * guix/scripts/describe.scm (%options): Add profile option. (show-help): Document this. (display-checkout-info): Check for profile argument. * doc/guix.texi (Invoking guix describe): Document this. --- doc/guix.texi | 4 ++++ guix/scripts/describe.scm | 15 +++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 3e7b0a9f4..274d4dfd1 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3278,6 +3278,10 @@ guix pull}); @cindex JSON produce a list of channel specifications in JSON format. @end table + +@item --profile=@var{profile} +@itemx -p @var{profile} +Display information in the given @var{profile}. @end table @node Invoking guix pack diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm index 53195b423..251be8c21 100644 --- a/guix/scripts/describe.scm +++ b/guix/scripts/describe.scm @@ -42,6 +42,10 @@ (unless (member arg '("human" "channels" "json")) (leave (G_ "~a: unsupported output format~%") arg)) (alist-cons 'format (string->symbol arg) result))) + (option '(#\p "profile") #t #f + (lambda (opt name arg result) + (alist-cons 'profile (canonicalize-profile arg) + result))) (option '(#\h "help") #f #f (lambda args (show-help) @@ -59,6 +63,8 @@ Display information about the channels currently in use.\n")) (display (G_ " -f, --format=FORMAT display information in the given FORMAT")) + (display (G_ " + -p, --profile=PROFILE display information in the given PROFILE")) (newline) (display (G_ " -h, --help display this help and exit")) @@ -79,11 +85,11 @@ Display information about the channels currently in use.\n")) (format #t (G_ "~%;; warning: GUIX_PACKAGE_PATH=\"~a\"~%") string)))))) -(define (display-checkout-info fmt) +(define* (display-checkout-info fmt #:optional directory) "Display information about the current checkout according to FMT, a symbol denoting the requested format. Exit if the current directory does not lie within a Git checkout." - (let* ((program (car (command-line))) + (let* ((program (or directory (car (command-line)))) (directory (catch 'git-error (lambda () (repository-discover (dirname program))) @@ -171,9 +177,10 @@ in the format specified by FMT." name)) cons %default-options)) - (format (assq-ref opts 'format))) + (format (assq-ref opts 'format)) + (profile (or (assq-ref opts 'profile) (current-profile)))) (with-error-handling - (match (current-profile) + (match profile (#f (display-checkout-info format)) (profile -- 2.19.1 ------------=_1543338903-1590-1--