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

Gijs Hollestelle g.hollestelle at gmail.com
Sun Jan 23 13:26:55 UTC 2005


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.

Regards,
  Gijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: download-size.patch
Type: text/x-patch
Size: 2393 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20050123/d7c2f0b4/attachment.bin 


More information about the Yum-devel mailing list