[Yum-devel] [PATCH] report total download size

seth vidal skvidal at phy.duke.edu
Mon Jan 24 05:09:13 UTC 2005


On Sun, 2005-01-23 at 14:26 +0100, Gijs Hollestelle wrote:
> Hi all,
> 
> I'm not sure if this has been proposed before, but one of the things
> that is really bugging me in yum is that it does not report the total
> download size for an update. I think very often a user would like to
> know this before answering the 'is this ok?' question. I just made a
> quick patch to add this, 'screenshot' below.
> 
> Only the Total download size: 3.8 M line is added by this patch:
> 
> Dependencies Resolved
> Transaction Listing:
>   Install: squale.i386 0:0.1.1-1.1.fc3.fr - freshrpms
> 
> Performing the following to resolve dependencies:
>   Install: mysql.i386 0:3.23.58-14 - updates
>   Install: perl-DBI.i386 0:1.40-5 - base
>   Install: perl-DBD-MySQL.i386 0:2.9003-5 - base
> Total download size: 3.8 M
> Is this ok [y/N]:
> 
> What I've done to implement this is to move a small piece of code in
> cli.py and add a new reportDownloadSize method to output.py. See the
> attached patch for more details.
> 

No problem with this patch - it's very straightforward.

What's funny about this is that before this week I've never had a
request to see total download size amount.

Someone on fedora-devel-list started ranting and raving and didn't feel
like filing even an rfe. Just kinda sad.

-sv





More information about the Yum-devel mailing list