Bug 87766

Summary: rpm gives misleading progress output
Product: [Retired] Red Hat Linux Reporter: David Balažic <david.balazic>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: chris.ricker, menthos
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-02 23:42:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Balažic 2003-04-02 08:16:55 UTC
Description of problem:

[root@juice tmp]# ls *rpm
evolution-1.2.2-5.i386.rpm  sendmail-8.12.8-5.90.i386.rpm
[root@juice tmp]# rpm -Fvh *rpm
Preparing...                ########################################### [100%]
   1:evolution              ########################################### [ 50%]
   2:sendmail               ########################################### [100%]

Is evolution only half installed ?

People said, this means "1 out of 2 (=50%) installed".

If that is true, then the output is misleading and non-obvious.
Please change it to something more understandable.
Maybe:
"50% overall"
or "1/2"
or "1 out of 2"

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

rpm-4.2-0.69.i386.rpm

Comment 1 Chris Ricker 2003-04-02 15:58:05 UTC
I don't think there's any problem with the current behavior

If anything, the confusing part is that the %postinstall, etc. scripts weren't
included in the totals (so if you install 20 packages, you hit 100%, think
you're done, but still have 20 scripts left to run). Other than that, I at least
think it makes sense.

Comment 2 Christian Rose 2003-04-02 16:24:57 UTC
I think that one cause for the confusion might be that this output differs from
what "update -u" produces:

Preparing...                ########################################### [100%]

Installing...
   1:openssl                ########################################### [100%]
   2:openssl-perl           ########################################### [100%]

"up2date -u" displays the progress for each package. I don't know what behavior
is better, but both these programs should probably show the same type of
progress since the output looks so similar, to avoid confusion.