1 |
commit: 108559b3df8ef31072c53afe07d4005f496caffb |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 9 21:49:55 2012 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 9 21:49:55 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=108559b3 |
7 |
|
8 |
TermProgressBar: Fix to do 80 chars (not 81) |
9 |
|
10 |
--- |
11 |
pym/portage/output.py | 4 ++-- |
12 |
1 files changed, 2 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/output.py b/pym/portage/output.py |
15 |
index fc6f6eb..507adb0 100644 |
16 |
--- a/pym/portage/output.py |
17 |
+++ b/pym/portage/output.py |
18 |
@@ -737,9 +737,9 @@ class TermProgressBar(ProgressBar): |
19 |
square_brackets_width = 2 |
20 |
if cols < percentage_str_width: |
21 |
return "" |
22 |
- bar_space = cols - percentage_str_width - square_brackets_width |
23 |
+ bar_space = cols - percentage_str_width - square_brackets_width - 1 |
24 |
if self._desc: |
25 |
- bar_space -= self._desc_max_length + 1 |
26 |
+ bar_space -= self._desc_max_length |
27 |
if maxval == 0: |
28 |
max_bar_width = bar_space-3 |
29 |
image = " " |