bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error messages and progress report


From: Ludovic Courtès
Subject: Re: Error messages and progress report
Date: Thu, 10 Jan 2013 22:14:22 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Andreas Enge <address@hidden> skribis:

> Well, it could be slightly improved. I am just downloading
> http://linux-libre.fsfla.org/pub/linux-libre/releases/3.3.8-gnu/linux-libre-3.3.8-gnu.tar.xz,
> and the file name is so long that the progress counter does not fit into 
> the same line any more. I would suggest to print only the file name after 
> the last "/".

I find it useful to have the server name printed (esp. in the case of
mirror://, ftpmirror.gnu.org, etc.), so I’ve come up with a solution
that abbreviates long URIs like this:

--8<---------------cut here---------------start------------->8---
scheme@(guix build download)> (uri-abbreviation (string->uri 
"http://www.gnu.org/gnu/guile/guile-2.0.7.tar.gz";))
$15 = "http://www.gnu.org/.../guile-2.0.7.tar.gz";
scheme@(guix build download)> (uri-abbreviation (string->uri 
"http://www.gnu.org/gnu/ed/ed-5.0.tar.gz";))
$16 = "http://www.gnu.org/gnu/ed/ed-5.0.tar.gz";
scheme@(guix build download)> (uri-abbreviation (string->uri 
"http://linux-libre.fsfla.org/pub/linux-libre/releases/3.3.8-gnu/linux-libre-3.3.8-gnu.tar.xz";))
$17 = "http://linux-libre.fsfla.org/.../linux-libre-3.3.8-gnu.tar.xz";
--8<---------------cut here---------------end--------------->8---

WDYT?

I’ll commit it if there are no objections.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]