Bug 551825

Summary: zypper display wrong progress when download packages in advance
Product: [openSUSE] openSUSE 11.2 Reporter: Matthias Fehring <buschmann23>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P2 - High    
Version: RC 2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Matthias Fehring 2009-11-02 11:29:19 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux; de-DE) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3)  rekonq

When using commit.downloadMode = DownloadInAdvance in /etc/zypp/zypp.conf, zypper displays a "wrong" progress. After the last package ist downloaded, the progress count is full (like [53/53]) and when the packages getting installed, it counts higher (like [97/53]). It is only a cosmetic problem, but it does not look so nice... :)

Reproducible: Always

Steps to Reproduce:
1. change commit.downloadMode to DownloadInAdvance
2. use zypper, for example install multiple packages
Actual Results:  
....
....
Paket OpenOffice_org-writer-3.1.1.4-1.1.4.x86_64 wird abgerufen (46/53), 5,9 MiB (19,5 MiB entpackt)                     
Abruf: OpenOffice_org-writer-3.1.1.4-1.1.4.x86_64.rpm [fertig (539,6 KiB/s)]                                             
Paket OpenOffice_org-kde4-3.1.1.4-1.1.4.x86_64 wird abgerufen (47/53), 50,0 KiB (163,0 KiB entpackt)                     
Abruf: OpenOffice_org-kde4-3.1.1.4-1.1.4.x86_64.rpm [fertig] 
....
....
Paket OpenOffice_org-writer-3.1.1.4-1.1.4.x86_64 wird abgerufen (99/53), 5,9 MiB (19,5 MiB entpackt)
Installation von: OpenOffice_org-writer-3.1.1.4-1.1.4 [fertig]                                      
Paket OpenOffice_org-kde4-3.1.1.4-1.1.4.x86_64 wird abgerufen (100/53), 50,0 KiB (163,0 KiB entpackt)
Installation von: OpenOffice_org-kde4-3.1.1.4-1.1.4 [fertig]
....
....

Expected Results:  
....
....
Paket OpenOffice_org-writer-3.1.1.4-1.1.4.x86_64 wird abgerufen (46/106), 5,9 MiB (19,5 MiB entpackt)                     
Abruf: OpenOffice_org-writer-3.1.1.4-1.1.4.x86_64.rpm [fertig (539,6 KiB/s)]                                             
Paket OpenOffice_org-kde4-3.1.1.4-1.1.4.x86_64 wird abgerufen (47/106), 50,0 KiB (163,0 KiB entpackt)                     
Abruf: OpenOffice_org-kde4-3.1.1.4-1.1.4.x86_64.rpm [fertig] 
....
....
Paket OpenOffice_org-writer-3.1.1.4-1.1.4.x86_64 wird abgerufen (99/106), 5,9 MiB (19,5 MiB entpackt)
Installation von: OpenOffice_org-writer-3.1.1.4-1.1.4 [fertig]                                      
Paket OpenOffice_org-kde4-3.1.1.4-1.1.4.x86_64 wird abgerufen (100/106), 50,0 KiB (163,0 KiB entpackt)
Installation von: OpenOffice_org-kde4-3.1.1.4-1.1.4 [fertig]
....
....
Comment 1 Jan Kupec 2009-11-02 12:27:21 UTC
Yes we know about it, but there was no time to adapt zypper to the DownloadInAdvance mode yet. It will also get options to set the download/install mode ad-hoc from the command line in the future.
Comment 2 Jan Kupec 2009-11-06 14:54:30 UTC
found a dupe

*** This bug has been marked as a duplicate of bug 545295 ***