projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8805dcd
)
Cap the progress bar columns at 80 since it looks ridiculous when it gets too wide.
author
Zac Medico
<zmedico@gentoo.org>
Mon, 28 May 2007 21:31:45 +0000
(21:31 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 28 May 2007 21:31:45 +0000
(21:31 -0000)
svn path=/main/trunk/; revision=6654
pym/portage/output.py
patch
|
blob
|
history
diff --git
a/pym/portage/output.py
b/pym/portage/output.py
index 75e043483984079968b3457956b4d4efbe5f195b..f5e261c825e09b227eca55ba2eb525a5d5c14d89 100644
(file)
--- a/
pym/portage/output.py
+++ b/
pym/portage/output.py
@@
-476,6
+476,7
@@
class TermProgressBar(ProgressBar):
lines, self.term_columns = get_term_size()
self.file = sys.stdout
self._min_columns = 11
+ self._max_columns = 80
# for indeterminate mode, ranges from 0.0 to 1.0
self._position = 0.0
@@
-490,6
+491,8
@@
class TermProgressBar(ProgressBar):
def _create_image(self):
cols = self.term_columns
+ if cols > self._max_columns:
+ cols = self._max_columns
min_columns = self._min_columns
curval = self._curval
maxval = self._maxval