Bug 309043

Summary: Usability: 'zypper in' does not show download progress
Product: [openSUSE] openSUSE 10.3 Reporter: Klaus Kämpf <kkaempf>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Normal    
Priority: P5 - None CC: bugzilla.novell, dmacvicar, felix
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Klaus Kämpf 2007-09-09 09:57:48 UTC
Installing a package (with dependencies) with zypper shows alternating downloading and installing lines, but only the 'installing' ones have a progress counter.

Example:

Downloading package gnome-spell2-1.0.7-110.i586, 36.4 K (100.7 K unpacked)
* Installing: gnome-spell2-1.0.7-110 [100%]

The 'Downloading' lines must also show progress, esp. for larger packages over slow lines.
Comment 1 Felix Möller 2007-09-10 14:04:39 UTC
I have seen that too.

In addition I am following factory with zypper and a "zypper up --type package" takes one to two hours without any total progress indicator ...
Comment 2 Duncan Mac-Vicar 2007-09-10 15:16:42 UTC
Are you using -v option ?
Comment 3 Stanislav Visnovsky 2007-09-10 15:33:19 UTC

*** This bug has been marked as a duplicate of bug 300903 ***
Comment 4 Duncan Mac-Vicar 2007-09-10 15:38:04 UTC

*** This bug has been marked as a duplicate of bug 308237 ***
Comment 5 Jan Kupec 2007-09-10 15:54:37 UTC
Stano, this bug is about downloading the RPM packages not the metadata (bug #300903).

It is not a duplicate of bug 308237 either.

Comment 6 Jan Kupec 2007-09-11 14:27:03 UTC
Enabling media callback progress output by default has a side-effect of displaying "Downloading: media". It looks like this: 

$ sudo src/zypper install MozillaFirefox-translations
* Reading repository 'factorysusetags' cache
* Reading installed packages [100%]

The following NEW package is going to be installed:
  MozillaFirefox-translations

Overall download size: 4.8 M. After the operation, additional 26.9 M will be used.
Continue? [yes/no]: y
Downloading package MozillaFirefox-translations-2.0.0.6-9.x86_64, 4.8 M (26.9 M unpacked)
Downloading: media
* Downloading [100%]
Downloading: MozillaFirefox-translations-2.0.0.6-9.x86_64.rpm
* Downloading [100%]
* Installing: MozillaFirefox-translations-2.0.0.6-9 [100%]

Is it acceptable?
Comment 7 Jan Kupec 2007-09-11 16:13:52 UTC
I mean is it acceptable for 10.3 or will _no_ rpm download progress be better?

For 11, we certainly should fix this properly. See also related bug #300903.
Comment 8 Stanislav Visnovsky 2007-09-12 08:56:08 UTC
I think the additional message is fine. 'media' means the media.1/media to check the proper media?
Comment 9 Duncan Mac-Vicar 2007-09-12 09:44:57 UTC
Why not showing all consecutive downloads in the same line?
Comment 10 Jan Kupec 2007-09-12 10:42:24 UTC
(In reply to comment #8 from Stanislav Visnovsky)
> I think the additional message is fine. 'media' means the media.1/media to
> check the proper media?
Yes

(In reply to comment #9 from Duncan Mac-Vicar Prett)
> Why not showing all consecutive downloads in the same line?
I've tried that a long time ago, but failed (can't recall the reason). But i'll try again if i spare some time.

Committing the above solution for now.
Comment 11 Jan Kupec 2007-09-25 14:57:43 UTC
Closing the bug now (fixed as described in comment #6), comment #9 will be solved outside of bugzilla.