diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-10-09 20:28:30 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-10-09 20:28:30 +0000 |
commit | 5faa8b31f5f34527a627acfe77b1d6715ac4ce76 (patch) | |
tree | c68ffa8ddae639cfbf713d8cd73e5d8dfc88f9a9 | |
parent | 5dd33e5ad16526b1dae7923dbdffe39b1afb65ef (diff) | |
download | portage-5faa8b31f5f34527a627acfe77b1d6715ac4ce76.tar.gz portage-5faa8b31f5f34527a627acfe77b1d6715ac4ce76.tar.bz2 portage-5faa8b31f5f34527a627acfe77b1d6715ac4ce76.zip |
Force consistent color output, in case we are capturing fetch
output through a normal pipe due to unavailability of ptys.
Thanks to grobian for reporting.
svn path=/main/trunk/; revision=14530
-rw-r--r-- | pym/_emerge/EbuildFetcher.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py index 228d15bb2..ba282081e 100644 --- a/pym/_emerge/EbuildFetcher.py +++ b/pym/_emerge/EbuildFetcher.py @@ -66,6 +66,11 @@ class EbuildFetcher(SpawnProcess): if debug: fetch_args.append("--debug") + if not self.background and nocolor not in ('yes', 'true'): + # Force consistent color output, in case we are capturing fetch + # output through a normal pipe due to unavailability of ptys. + fetch_args.append('--color=y') + self.args = fetch_args self.env = fetch_env SpawnProcess._start(self) |