On 26.10.2007 14:42, seth vidal wrote:
On Fri, 2007-10-26 at 14:19 +0200, Thorsten Leemhuis wrote:
> It's likely easier -- the rpm header contains all the needed info
> already afaik. And it's even in the data that yum downloads afaics; take
> a look at the file /updates/7/x86_64/repodata/primary.xml.gz on your
> favorite mirror and you'll for each package see something like this:
> <size package="400311" installed="1213843"
> I suppose that's the data that is needed and it's likely in the
> primary.sqlite.bz2 (which yum prefers these days iirc) as well.
> David, maybe just file a bug as RFE and see what happens.
I can tell you what'll happen :)
The issue is where to put the data on the screen and how to keep
confusing the user.
We could definitely say 'total installed size' in
the total summary but putting installed size next to download size for
each package just eats up valuable screen real-estate on a console.
So if you want to file a bug, no problem, just have a suggestion on
where you want this to show up.
Well, this (and similar mailing list threads; I think I saw others in
the past that started similar to this one) could just be avoided by
showing the same numbers on install and uninstall afaics. E.g. during
install show the size that the package will take on disc instead of the
download size for the package (which is currently displayed during
install). In the "Total download size: " of course just continue to show
the size of the stuff that gets downloaded -- most people are afaics
used to compression when it comes do downloads and thus won't wonder why
"sum of all packages != download size".
Just my 2 cent. But it's mainly a cosmetic problem...