projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0bfa14
)
TermProgressBar: Fix to do 80 chars (not 81)
author
Brian Dolbec
<dolsen@gentoo.org>
Mon, 9 Jul 2012 21:49:55 +0000
(14:49 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 9 Jul 2012 21:49:55 +0000
(14:49 -0700)
pym/portage/output.py
patch
|
blob
|
history
diff --git
a/pym/portage/output.py
b/pym/portage/output.py
index fc6f6ebaaca88b2be26279733711a096ea84d84e..507adb0baac0c48b57fbd79a15259121b53db705 100644
(file)
--- a/
pym/portage/output.py
+++ b/
pym/portage/output.py
@@
-737,9
+737,9
@@
class TermProgressBar(ProgressBar):
square_brackets_width = 2
if cols < percentage_str_width:
return ""
- bar_space = cols - percentage_str_width - square_brackets_width
+ bar_space = cols - percentage_str_width - square_brackets_width
- 1
if self._desc:
- bar_space -= self._desc_max_length
+ 1
+ bar_space -= self._desc_max_length
if maxval == 0:
max_bar_width = bar_space-3
image = " "