* [gentoo-portage-dev] [PATCH] SyncManager: redirect command stderr to stdout (bug 566132)
@ 2015-11-22 20:10 99% Zac Medico
0 siblings, 0 replies; 1+ results
From: Zac Medico @ 2015-11-22 20:10 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Zac Medico
X-Gentoo-Bug: 566132
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=566132
---
pym/portage/sync/controller.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/pym/portage/sync/controller.py b/pym/portage/sync/controller.py
index 4595293..e71ba67 100644
--- a/pym/portage/sync/controller.py
+++ b/pym/portage/sync/controller.py
@@ -218,6 +218,13 @@ class SyncManager(object):
self.usersync_uid = None
spawn_kwargs = {}
+ # Redirect command stderr to stdout, in order to prevent
+ # spurious cron job emails (bug 566132).
+ spawn_kwargs["fd_pipes"] = {
+ 0: sys.__stdin__.fileno(),
+ 1: sys.__stdout__.fileno(),
+ 2: sys.__stdout__.fileno()
+ }
spawn_kwargs["env"] = self.settings.environ()
if repo.sync_user is not None:
def get_sync_user_data(sync_user):
--
2.4.9
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-11-22 20:10 99% [gentoo-portage-dev] [PATCH] SyncManager: redirect command stderr to stdout (bug 566132) Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox