Bug 7652 - Package installer goes beyond 100%
Summary: Package installer goes beyond 100%
Status: CLOSED DUPLICATE of bug 4296
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.13.0
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-23 16:03 CET by Samuel Mannehed
Modified: 2021-02-23 16:21 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Samuel Mannehed cendio 2021-02-23 16:03:25 CET
When installing the ThinLinc packages, the progress percentage goes above 100%. I have seen 130% followed by 200% at the end of the package installs on a RHEL8 system.

The relevant algorithm in installer/modules/thinlinc/rpm.py is:

> progress_cb(100*stage/stages + 100*hashes/50/stages)

Where 'stages' are number of packages and 'hashes' are the number of '#' characters per line in the output from rpm.

This means that when installing the last package the percentage will always exceed 100 when rpm output contains '#'.
Comment 1 Samuel Mannehed cendio 2021-02-23 16:21:21 CET

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

Note You need to log in before you can comment on or make changes to this bug.