aboutsummaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2012-07-09 14:49:55 -0700
committerZac Medico <zmedico@gentoo.org>2012-07-09 14:49:55 -0700
commit108559b3df8ef31072c53afe07d4005f496caffb (patch)
treea755fc06a9a5010ad212b03cffbd3bbcf05aa68b /pym
parentPORTAGE_GPG_SIGNING_COMMAND: --digest-algo SHA256 (diff)
downloadportage-108559b3df8ef31072c53afe07d4005f496caffb.tar.gz
portage-108559b3df8ef31072c53afe07d4005f496caffb.tar.bz2
portage-108559b3df8ef31072c53afe07d4005f496caffb.zip
TermProgressBar: Fix to do 80 chars (not 81)
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/output.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index fc6f6ebaa..507adb0ba 100644
--- 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 = " "