Bug 168935

Summary: Yast package manager should show download rate
Product: [openSUSE] SUSE Linux 10.1 Reporter: Francis Giannaros <francis>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Enhancement    
Priority: P5 - None CC: jsrain, jsuchome, lslezak, mvidner, suse-beta
Version: RC 2   
Target Milestone: ---   
Hardware: x86-64   
OS: SuSE Linux 10.1   
Whiteboard: patch ready
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Adds transfer rates (avg and of last period/second) to the download report
Patch for libzypp (10.2 branch)
patch for current trunk revision 9063
zypper patch for trunk revision 9063

Description Francis Giannaros 2006-04-24 19:27:44 UTC
It's *very* useful to know how fast yast is getting packages from a server, or off another source medium. Would be really nice to have this. :)
Comment 1 Michael Gross 2006-04-25 14:15:06 UTC
I agree.
Comment 2 Francis Giannaros 2006-04-29 13:26:46 UTC
Note: this could also be useful in the yast Installation source module, when adding a new source. Useful to know the progress when it has to download 25 megs or so of data. 
Comment 3 Jiri Srain 2006-07-25 07:47:51 UTC
Marius, would it be possible that the download report from the CURL backend reported also the download rate?

If it is possible and it gets implemented, reassign back to me, please.
Comment 4 Marius Tomaschewski 2006-07-25 12:19:09 UTC
Created attachment 94423 [details]
Adds transfer rates (avg and of last period/second) to the download report
Comment 5 Marius Tomaschewski 2006-07-25 12:24:28 UTC
Just submit yourself or let me know if I should submit it to SVN,
since you have to add the new arguments on the receiver side...
Comment 10 Francis Giannaros 2007-02-10 16:13:43 UTC
This was said/made many months ago. No update on this?
Comment 11 Jiri Srain 2007-02-12 12:23:05 UTC
Sorry, but the patch above is only one piece of the bugfix, the others are still missing. This enhancement should be included in openSUSE 10.3.
Comment 12 Ladislav Slezák 2007-02-13 13:05:07 UTC
Created attachment 118862 [details]
Patch for libzypp (10.2 branch)

I have modified the patch for 10.2 libzypp
Comment 13 Ladislav Slezák 2007-02-13 13:10:16 UTC
It works, but only when downloading metadata from an installation source. During package downloading the progress callback is not called.

Marius, could you check my patch and fix it?

This feature should go to 10.3 only (AFAIK there is a problem with libzypp branches which must be solved...).

Reassign the bug back to me when libzypp is ready, I'll adapt the yast side.
Comment 14 Marius Tomaschewski 2007-02-14 09:39:13 UTC
Reassign to Jan.
Comment 15 Francis Giannaros 2008-03-02 23:42:39 UTC
This enhancement request has been open for nearly two years :-)
Comment 16 Jan Kupec 2008-03-09 00:37:54 UTC
And the next week it's gonna be done! :O)
Comment 17 Jan Kupec 2008-03-09 00:43:41 UTC
Created attachment 199663 [details]
patch for current trunk revision 9063

this patch has somewhat more accurate download rate estimation
Comment 18 Jan Kupec 2008-03-09 01:11:26 UTC
Created attachment 199664 [details]
zypper patch for trunk revision 9063
Comment 19 Jan Kupec 2008-03-09 01:13:39 UTC
Lado, zypp and zypper patches are ready, i will submit them whenever you're ready. 
Comment 20 Jan Kupec 2008-03-10 12:39:40 UTC
zypp & zypper submitted, zypp version will be 4.4.x
Comment 21 Ladislav Slezák 2008-03-11 12:47:28 UTC
I just have implemented the yast part, the download rate is implemented in yast2-pkg-bindings-2.16.17, yast2-packager-2.16.24 and yast2-2.16.34.

yast2-online-update-2.16.8 and yast2-product-creator-2.16.5 were adapted to the new callback signature (they provide their own progress callback).