Bug 501879 - yum total download size wrong with yum-presto enabled
Summary: yum total download size wrong with yum-presto enabled
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-21 08:27 UTC by stefan
Modified: 2014-01-21 23:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-21 14:16:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description stefan 2009-05-21 08:27:35 UTC
Description of problem: with yum-presto enabled running a yum update announces the total download size to be the amount of mb's that would would be fetched without delta-rpm's and thus giving a wrong impression of how much data is actually going to be downloaded from the update servers


Version-Release number of selected component (if applicable): F11 (rawhide)


How reproducible: su -c 'yum update'


Steps to Reproduce:
1. run konsole
2. su - 
3. yum update
  
Actual results:

Transaction Summary
==============================================================================
Install      0 Package(s)                                                                
Update      46 Package(s)                                                                
Remove       0 Package(s)                                                                

Total download size: 142 M
Is this ok [y/N]: y       
........
........
Size of all updates downloaded from Presto-enabled repositories: 29M                     
Size of updates that would have been downloaded if Presto wasn't enabled: 142M           
This is a savings of 80 percent         

Expected results:

Transaction Summary
=========================================================================================
Install      0 Package(s)                                                                
Update      46 Package(s)                                                                
Remove       0 Package(s)                                                                

Total download size: 29 M
Is this ok [y/N]: y       
.....
.....

Additional info: none

Comment 1 James Antill 2009-05-21 13:47:49 UTC
yum-presto does this "behind the back of yum", so it doesn't know about it.
However you appear to be using an old version of yum-presto, if you update the UI has a few improvements which will probably solve your problem.

Comment 2 stefan 2009-05-21 14:00:06 UTC
thanks for the update!

i am running a fully updated F11 rawhide install, so how could it be updated? And yum-presto is an "official" yum plugin, so i would expect them to operate together. 

When it is done downloading and installing it gives me the message where the original download size has been mentioned, the size in deltarpms and the savings, i am sure that this could be communicated beforehand to yum as well so yum will tell me *before* starting the download how many mb's it is going to fetch.

i would like to know *beforehand* what the expected downloadsize is going to be so i an make the decision myself if it is worth the wait/bandwith.

besides, imho when the downloader states it is going to fetch 142mb when in fact it is just getting 29mb of drpms is in fact a bug/incomplete feature.

cheers,
stefan

Comment 3 James Antill 2009-05-21 14:16:27 UTC
 There are currently two pending updates, one for updates-testing in Fedora-11 the other for Fedora-12 rawhide (current mashed rawhide is still Fedora 11's, AIUI).
 You can get either from:

http://kojipkgs.fedoraproject.org/packages/yum-presto/0.5.0/

> i am sure that this could be communicated beforehand to yum

This _might_ happen if/when yum-presto is merged into core yum, it's not going to happen when presto is a plugin.


Note You need to log in before you can comment on or make changes to this bug.