Bug 227903 - Show Download Rate with Zypper
Summary: Show Download Rate with Zypper
Status: RESOLVED FIXED
: 301674 (view as bug list)
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Alpha 2
Hardware: Other Other
: P5 - None : Enhancement with 5 votes (vote)
Target Milestone: ---
Assignee: Jan Kupec
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-12 14:34 UTC by Francis Giannaros
Modified: 2008-03-19 09:59 UTC (History)
5 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francis Giannaros 2006-12-12 14:34:36 UTC
It's very useful to know the exact download rate that you're getting something at. I'm aware you can get the downloaded percentage with -v, but that's not precisely the same. 

Also, download rate/percentage should be shown by default, without having to increase verbosity. Pretty standard piece of information. Thoughts?
Comment 1 Martin Vidner 2007-02-27 13:32:52 UTC
Jano is taking over as the primary maintainer of zypper, I am a co-maintainer.
Comment 3 Jan Kupec 2007-04-23 12:03:02 UTC
I like the idea, any objections from others?
Comment 4 Duncan Mac-Vicar 2007-04-23 15:17:37 UTC
I think it has to be consistant

The best way would be to invert the behavior.

- show progress (nice) by default
- -v increase verbosity
- --quiet option
Comment 5 Francis Giannaros 2007-08-06 11:16:13 UTC
Will this be happening for 10.3? At the moment it will show the progress of the individual RPM installation but not of the download progress (a lot more useful, for individual packages) and gives no indication of overall progress. Again, something very useful to know/have when you're upgrading a hundred or so packages with zypper. 
Comment 6 Cristian Rodriguez 2007-08-23 06:47:07 UTC
The download progress is vital information, the user may think the program is hanging while downloading large packages.
Comment 7 Cristian Rodriguez 2007-08-23 06:49:26 UTC
*** Bug 301674 has been marked as a duplicate of this bug. ***
Comment 8 Francis Giannaros 2007-08-26 18:37:08 UTC
Any news on whether this (or at the very least: download progress of a package displayed with default zypper install output) will make it in in time for 10.3? 
Comment 9 Cristian Rodriguez 2007-08-28 19:39:51 UTC
(In reply to comment #4 from Duncan Mac-Vicar Prett)

> - show progress (nice) by default
> - -v increase verbosity
> - --quiet option
> 

Nice by default also should include a progress indicator for f.e

Refreshing "reponame" (progress indicator here) large repos takes very long to refresh.
Comment 10 Francis Giannaros 2007-09-14 11:37:55 UTC
At least now it shows the download percentage of an individual package :-)
Comment 11 Francis Giannaros 2007-09-14 15:45:29 UTC
Though, when it is only downloading+installing one package, why does it display it in the syntax of:

Downloading: somepackage-1.64-32.1.i586.rpm , 1.0 M (1.1 M unpacked)
* Downloading [100%]
* Installing: somepackage-1.64-32.1 [100%]

Would:

* Downloading: somepackage-1.64-32.1.i586.rpm, 1.0 M (1.1 M unpacked) [100%]
* Installing: somepackage-1.64-32.1 [100%]

..not be a better idea? (more consistent, less line space too). I can see why this would be a good idea when it needs to download, say, 2 packages before installing one. 
Comment 12 Jan Kupec 2007-09-14 20:37:24 UTC
Sure, it's ugly now, but there are some difficulties with the zypp media backend callbacks usage in zypper, and there was no time to come up with a proper solution for 10.3. We'll take care of it for 11.
Comment 13 Jan Kupec 2007-09-14 21:07:53 UTC
See also related bug 309043 and bug 300903
Comment 14 Jan Kupec 2007-09-14 21:08:55 UTC
Delaying to openSUSE 11.
Comment 15 Bjørn Lie 2008-03-02 10:46:48 UTC
Any update on this? I'm sure I'm not the only one rooting for this feature. Primarily thinking of  - show progress (nice) by default (total % done)

OT: the speed of zypp now rules :)
Comment 16 Francis Giannaros 2008-03-02 11:46:31 UTC
Bjorn, just a note that overall progress feature for zypper is tracked in Bug 240588
Comment 17 Jan Kupec 2008-03-09 01:21:43 UTC
patch ready in bug 168935 :O) to be in zypper 0.10.3 or 0.10.4
Comment 18 Jan Kupec 2008-03-14 14:38:15 UTC
submitted
Comment 19 Francis Giannaros 2008-03-17 10:10:52 UTC
AWESOME :)
Comment 20 Stephan Binner 2008-03-19 04:09:00 UTC
What's the logic behind it being displayed for some packages and others not? The packages size? What's the limit?

Downloading package texlive-2007-143.noarch, 165.8 M (356.8 M unpacked)
* Downloading: texlive-2007-143.noarch.rpm [done (9.8 M/s)]
* Installing: texlive-2007-143
Downloading package libzypp-4.4.3-3.i586, 1.9 M (5.7 M unpacked)
* Downloading: libzypp-4.4.3-3.i586.rpm [done]
* Installing: libzypp-4.4.3-3
Comment 21 Jan Kupec 2008-03-19 09:59:33 UTC
Time basically. If the download takes less than cca 2 seconds, the download rate is not calculated at all. The time is measured in seconds, so the result would be too inacurate. We can improve this in the future, but i guess it's ok for now.