aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-04-01 08:33:55 -0700
committerZac Medico <zmedico@gentoo.org>2013-04-01 08:33:55 -0700
commit4e0d577fa49a6ffb3979a9370b5bf4126193ffc6 (patch)
tree256f7e243ea6728d99e9452576ac930af9277b05 /bin/egencache
parentecompressdir: fix decompress, bug #462936 (diff)
downloadportage-4e0d577fa49a6ffb3979a9370b5bf4126193ffc6.tar.gz
portage-4e0d577fa49a6ffb3979a9370b5bf4126193ffc6.tar.bz2
portage-4e0d577fa49a6ffb3979a9370b5bf4126193ffc6.zip
egencache,emirrordist: disable color if no tty
Diffstat (limited to 'bin/egencache')
-rwxr-xr-xbin/egencache4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/egencache b/bin/egencache
index 797105c43..cbc4b28ad 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -844,6 +844,10 @@ class GenChangeLogs(object):
self.generate_changelog(cp)
def egencache_main(args):
+
+ if not sys.stdout.isatty():
+ portage.output.nocolor()
+
parser, options, atoms = parse_args(args)
config_root = options.config_root