diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-09 10:09:39 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-09 10:09:39 -0700 |
commit | 5f475f87892a950022d9310d879d2db38a6eda2f (patch) | |
tree | 116966d993ac6fd435a9186c50f41e0bcf885453 | |
parent | 7a26634d5d7d02c49dce17b81d8271d509abd4d0 (diff) | |
download | portage-5f475f87892a950022d9310d879d2db38a6eda2f.tar.gz portage-5f475f87892a950022d9310d879d2db38a6eda2f.tar.bz2 portage-5f475f87892a950022d9310d879d2db38a6eda2f.zip |
Make EbuildFetcher always disable color in prefetch mode, since
prefetch output always goes to a log.
-rw-r--r-- | pym/_emerge/EbuildFetcher.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py index bbae6a6a1..87c82db58 100644 --- a/pym/_emerge/EbuildFetcher.py +++ b/pym/_emerge/EbuildFetcher.py @@ -64,6 +64,12 @@ class EbuildFetcher(SpawnProcess): fetch_env['PORTAGE_CONFIGROOT'] = settings['PORTAGE_CONFIGROOT'] nocolor = settings.get("NOCOLOR") + + if self.prefetch: + # prefetch always outputs to a log, so + # always disable color + nocolor = "true" + if nocolor is not None: fetch_env["NOCOLOR"] = nocolor |