unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Sent <richard@freakingpenguin.com>
To: 74878@debbugs.gnu.org
Cc: "Richard Sent" <richard@freakingpenguin.com>,
	"Christopher Baines" <guix@cbaines.net>,
	"Josselin Poiret" <dev@jpoiret.xyz>,
	"Ludovic Courtès" <ludo@gnu.org>,
	"Mathieu Othacehe" <othacehe@gnu.org>,
	"Simon Tournier" <zimon.toutoune@gmail.com>,
	"Tobias Geerinckx-Rice" <me@tobias.gr>
Subject: [bug#74878] [PATCH 1/2] scripts: substitute: Report the number of substitutes being updated.
Date: Sat, 14 Dec 2024 19:26:46 -0500	[thread overview]
Message-ID: <c8eddb560d8aef176d71fede1873dcb03e2f82bd.1734221404.git.richard@freakingpenguin.com> (raw)
In-Reply-To: <cover.1734221404.git.richard@freakingpenguin.com>

* guix/scripts/substitute.scm (process-query)[make-progress-reporter]: Report
the total number of substitutes.

Change-Id: I00c6fe7383a6093ce0567c0f391e613d36a563bc
---
 guix/scripts/substitute.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 8db730a9c0..08ec172675 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -328,8 +328,8 @@ (define* (process-query port command
       (erase-current-line (current-error-port)) ;erase current line
       (force-output (current-error-port))
       (format (current-error-port)
-              (G_ "updating substitutes from '~a'... ~5,1f%")
-              url (* 100. (/ done total)))
+              (G_ "updating ~d substitute~:p from '~a'... ~5,1f%")
+              total url (* 100. (/ done total)))
       (set! done (+ 1 done)))
 
     (progress-reporter
-- 
2.46.0





  reply	other threads:[~2024-12-15  0:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-15  0:23 [bug#74878] [PATCH 0/2] Improve Guix Subsitute script usage Richard Sent
2024-12-15  0:26 ` Richard Sent [this message]
2024-12-15  0:26 ` [bug#74878] [PATCH 2/2] scripts: substitute: Improve the help output Richard Sent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c8eddb560d8aef176d71fede1873dcb03e2f82bd.1734221404.git.richard@freakingpenguin.com \
    --to=richard@freakingpenguin.com \
    --cc=74878@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    --cc=guix@cbaines.net \
    --cc=ludo@gnu.org \
    --cc=me@tobias.gr \
    --cc=othacehe@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).