Package: aptitude
Version: 0.5.3.1-1
Severity: minor

%D and the other size related items on
file:///usr/share/doc/aptitude/html/en/ch02s05s01.html#secDisplayFormat
make output like
1581kB vlc
12.3MB vlc-dbg
6098B  vlc-plugin-ggi
which is nice, but not when one wants to sort them, whereupon one needs e.g.,

$ aptitude -F '%D %c%a%M %p# - %d#' search ~U|
perl -pwle 
's/^(\S+)kB/$1*1000/e||s/^(\S+)MB/$1*1000000/e||s/^(\S+)B/$1/||die'|sort -nr
24100000 i   linux-image-2.6.30-1-686     - Linux 2.6.30 image on 
PPro/Celeron/PII
14800000 ihA emacs22-common               - The GNU Emacs editor's shared, 
archite
13800000 i   libgl1-mesa-dri              - A free implementation of the OpenGL 
AP

to restore their unabbreviated values. And even then, we can't shake off
the affects of rounding.

Therefore -F %D etc. needs a way to say 'just give me the raw number, no
need for helpful MB, kB abbreviations today'.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to