diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-01-11 05:22:43 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-01-11 05:22:43 +0000 |
commit | b4ef1e6be09e5033e165ab1cfe062d23b00f0254 (patch) | |
tree | 5563e73c5005ddd91f25bebfb6c510ebeabd4de4 /pym/portage/getbinpkg.py | |
parent | 3dbfec2d8a087d242983ef40ef37ad6ed9b77913 (diff) | |
download | portage-b4ef1e6be09e5033e165ab1cfe062d23b00f0254.tar.gz portage-b4ef1e6be09e5033e165ab1cfe062d23b00f0254.tar.bz2 portage-b4ef1e6be09e5033e165ab1cfe062d23b00f0254.zip |
Bug #300388 - Fix terminal handling code to so term codes aren't sent when
TERM=dumb.
svn path=/main/trunk/; revision=15191
Diffstat (limited to 'pym/portage/getbinpkg.py')
-rw-r--r-- | pym/portage/getbinpkg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py index 42938de99..26b2bb1fc 100644 --- a/pym/portage/getbinpkg.py +++ b/pym/portage/getbinpkg.py @@ -638,7 +638,7 @@ def dir_get_metadata(baseurl, conn=None, chunk_size=3000, verbose=1, usingcache= self.out.flush() cache_stats = CacheStats(out) - have_tty = out.isatty() + have_tty = os.environ.get('TERM') != 'dumb' and out.isatty() if have_tty: cache_stats.display() binpkg_filenames = set() |