Bug 36600

Summary: progress percentage calculation errors
Product: [Retired] Red Hat Linux Reporter: Daniel Roesen <dr>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 7.1   
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: 2001-04-19 11:45:28 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 Daniel Roesen 2001-04-19 00:56:27 UTC
Example:

[root@homebase redhat]# rpm -Fvh RPMS/i386/slrn-*
Preparing...         ########################################### [100%]
   1:slrn            ########################################### [ 50%]
   2:slrn-pull       ########################################### [100%]

I think I saw someone in another filing talking about seeing 101% (sounds
like rounding issue).

Comment 1 Jeff Johnson 2001-04-19 11:40:00 UTC
No it isn't rounding, it's mixing source and binary rpm's, source rpm's are
not included in the calculation.

Comment 2 Daniel Roesen 2001-04-19 11:45:24 UTC
No, there was no Source RPM involved. Just two binary RPMs.

Comment 3 Jeff Johnson 2001-04-19 12:11:29 UTC
The greater than 100% is in #35979 and has src rpm's involved.

So what is wrong with the output above, the 50%? That's a feature, as that's
the percentage of the entire transaction that is complete, in your case
100% divided by 2 packages.

Comment 4 Daniel Roesen 2001-04-19 12:19:35 UTC
Ah, OK. Thanks for clarification.