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

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Tue Feb 23 12:10:20 GMT 2016


Control: tags -1 + pending

2016-02-22 23:48 To Vincent Lefevre:
>>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!
>
>I don't recall the details, but I think that aptitude/cwidget reserve
>the space even if the other fields don't have any text in them, and
>there are fields for "Broken", "Will use/free space", and "DL Size".
>
>The minimum for the hostname should be 8, expandable but not shrinkable,
>but either it's not doing that or it overcommits space available and
>then shinks anyway.

This was due to another field which shouldn't be getting in the way in
default_width.

Fixed, marking as +pending.

>>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:".
>
>Actually, when fiddling with the above I thought about rephrasing
>specially the longer "Will free...", maybe somethink like "Disk after
>install: blah", "Disk usage change: blah", "Disk usage: blah" or
>similar.  Not much shorter but it will probably be enough.  I am not
>sure if just "Disk" is descriptive enough for new/casual users.
>
>I didn't go ahead to try to not make it worse, or to make possibly
>unnecessary changes that might unplease some users more avert to change
>in general, or the new phrases in particular.

So I changed this to "Disk usage:" in another commit, so there will be
more space now, and in principle shouldn't be truncated with 80-width
terminals.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list