1 |
X-Gentoo-Bug: 566132 |
2 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=566132 |
3 |
--- |
4 |
pym/portage/sync/controller.py | 7 +++++++ |
5 |
1 file changed, 7 insertions(+) |
6 |
|
7 |
diff --git a/pym/portage/sync/controller.py b/pym/portage/sync/controller.py |
8 |
index 4595293..e71ba67 100644 |
9 |
--- a/pym/portage/sync/controller.py |
10 |
+++ b/pym/portage/sync/controller.py |
11 |
@@ -218,6 +218,13 @@ class SyncManager(object): |
12 |
|
13 |
self.usersync_uid = None |
14 |
spawn_kwargs = {} |
15 |
+ # Redirect command stderr to stdout, in order to prevent |
16 |
+ # spurious cron job emails (bug 566132). |
17 |
+ spawn_kwargs["fd_pipes"] = { |
18 |
+ 0: sys.__stdin__.fileno(), |
19 |
+ 1: sys.__stdout__.fileno(), |
20 |
+ 2: sys.__stdout__.fileno() |
21 |
+ } |
22 |
spawn_kwargs["env"] = self.settings.environ() |
23 |
if repo.sync_user is not None: |
24 |
def get_sync_user_data(sync_user): |
25 |
-- |
26 |
2.4.9 |