[Aptitude-devel] Bug#815554: Bug#815554: aptitude: truncated hostname in header line (regression)

Vincent Lefevre vincent at vinc17.net
Mon Feb 22 23:12:57 GMT 2016


On 2016-02-22 21:22:44 +0000, Manuel A. Fernandez Montecelo wrote:
> I had to do some changes to the size due to #810221 -- the fields Broken
> and Download size are more important than host for most people, I guess.

I don't think they need much precision (3 or 4 digits is enough).
Also note that the host is truncated even when there is no size
information. For instance:

aptitude 0.7.6 @ cven

and that's all with a 80-column terminal!

> Some people like the hostname being there, but I am still wondering if
> it was an error to honour that request and enable it by default, because
> we have had 2 reports because of it in a short time.

I think that it is nice to have it since there is space for it
(see above). I also have the hostname in my window title, but
when I run SSH in screen, it may or may not be updated, depending
on the context. Having it in aptitude is more informative.

> Due to the rules of creating columns in aptitude/cwidget, this is a bit
> of a mess (it needs to reserve space beforehand even if the line appears
> empty).

How about defining only one column and build the line yourself?

> In any case, something has to give, and it's impossible to
> support largish hostnames in 80-width characters anyway.

I get:

aptitude 0.7.6 @ cven              Will free 357 kB of disk spa DL Size: 38.8 MB

I don't understand why both the hostname and "disk space" are
truncated. Also, instead of "Will free 357 kB of disk spa",
which should be "Will free 357 kB of disk space", how about:

Disk: -357 kB

(with the sign - for "free" and + for "use").

Note that "space" and "size" are redundant with the kB/MB/... size unit.
Instead of "DL Size:", you could write "DL:" or "Download:".

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Aptitude-devel mailing list