Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 106836

Summary: emerge --sync then ">>> Updating Portage cache: xx%" where xx is a huge value
Product: Portage Development Reporter: Peter <paf>
Component: Core - External InteractionAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter 2005-09-21 14:51:09 UTC
During emerge --sync the line appears:
>>> Updating Portage cache:  xx%
Where xx is some number...
The bug is that when one presses space and the xx advance, then a really huge
number is made. Looks kinda like this:
>>> Updating Portage cache: 12%
(hit space, then it updates, we get)
>>> Updating Portage cache: 113%
(hit space twice)
>>> Updating Portage cache: 11314%
The code that allows this bug is obvious.

Reproducible: Always
Steps to Reproduce:
1. execute "emerge --sync"
2. wait until ">>> Updating Portage cache:" appears
3. Hit space
4. wait for the percent to update

Actual Results:  
A really huge percent :P

Expected Results:  
The software should have returned the curser to the same position regardless of
the number of spaces or any other key pressed and placed a correct number.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-09-21 19:04:52 UTC
Press backspace to return the cursor to the "normal" position.

If you want to submit a patch that rewrites that line every time it updates the 
cache percentage then it might get included; I don't think anyone on the portage 
team is going to fix such a minor error that by some interpretations isn't even 
a bug at all.