all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
@ 2024-12-15  6:53 Maxim Cournoyer
  2024-12-15 18:19 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2024-12-15  6:53 UTC (permalink / raw)
  To: 74882
  Cc: Tobias Geerinckx-Rice, Felix Lechner, Maxim Cournoyer,
	Christopher Baines, Josselin Poiret, Ludovic Courtès,
	Mathieu Othacehe, Simon Tournier, Tobias Geerinckx-Rice

* guix/scripts/substitute.scm (process-query): Attempt to precise the 'update
substitutes' message.

Suggested-by: Tobias Geerinckx-Rice <me@tobias.gr>
Reported-by: Felix Lechner <felix.lechner@lease-up.com>
Change-Id: I7b3f93f32b73a6a6175a035a09ab51a6e74e384b
---
 guix/scripts/substitute.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 8db730a9c0..993951e33c 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -328,7 +328,7 @@ (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%")
+              (G_ "looking for suitable substitutes on '~a'... ~5,1f%")
               url (* 100. (/ done total)))
       (set! done (+ 1 done)))
 

base-commit: cfd4f56f75a20b6732d463180d211f796c9032e5
-- 
2.46.0





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
  2024-12-15  6:53 [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message Maxim Cournoyer
@ 2024-12-15 18:19 ` Ludovic Courtès
  2024-12-16  8:16   ` Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2024-12-15 18:19 UTC (permalink / raw)
  To: Maxim Cournoyer
  Cc: Josselin Poiret, 74882, Simon Tournier, Mathieu Othacehe,
	Tobias Geerinckx-Rice, Felix Lechner, Christopher Baines

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> * guix/scripts/substitute.scm (process-query): Attempt to precise the 'update
> substitutes' message.

[...]

> -              (G_ "updating substitutes from '~a'... ~5,1f%")
> +              (G_ "looking for suitable substitutes on '~a'... ~5,1f%")

Part of the challenge here is having something that fits on one line,
which is still 80 characters for many (heck, GNOME Console or whatever
it’s called these days, the incarnation of modernity, defaults to 80
columns!).

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message.
  2024-12-15 18:19 ` Ludovic Courtès
@ 2024-12-16  8:16   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2024-12-16  8:16 UTC (permalink / raw)
  To: Ludovic Courtès
  Cc: Josselin Poiret, 74882, Simon Tournier, Mathieu Othacehe,
	Tobias Geerinckx-Rice, Felix Lechner, Christopher Baines

Hello!

Ludovic Courtès <ludo@gnu.org> writes:

> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> * guix/scripts/substitute.scm (process-query): Attempt to precise the 'update
>> substitutes' message.
>
> [...]
>
>> -              (G_ "updating substitutes from '~a'... ~5,1f%")
>> +              (G_ "looking for suitable substitutes on '~a'... ~5,1f%")
>
> Part of the challenge here is having something that fits on one line,
> which is still 80 characters for many (heck, GNOME Console or whatever
> it’s called these days, the incarnation of modernity, defaults to 80
> columns!).

In the original case we have 80 - 37 => 43 characters available for the
server URL.

The above diff would reduce that to 33 characters available for the
server URL; that' sill enough for our current default substitute URLs
(https://ci.guix.gnu.org/ is 24 characters, while
https://bordeaux.guix.gnu.org/ is 30 characters) although doesn't leave
much headroom.

We could perhaps shorten to just "looking for substitutes on" (drop the
'suitable ' part) ?  That'd be already an improvement when it comes to
more accurately reports what is actually happening.

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-16  8:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-15  6:53 [bug#74882] [PATCH] scripts: substitute: Refine 'updating substitutes' message Maxim Cournoyer
2024-12-15 18:19 ` Ludovic Courtès
2024-12-16  8:16   ` Maxim Cournoyer

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.