From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B071E1384B4 for ; Sun, 22 Nov 2015 20:10:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79483E07DB; Sun, 22 Nov 2015 20:10:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E71D2E07DA for ; Sun, 22 Nov 2015 20:10:22 +0000 (UTC) Received: from localhost.localdomain (ip174-67-193-3.oc.oc.cox.net [174.67.193.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id 6CAAD340139; Sun, 22 Nov 2015 20:10:21 +0000 (UTC) From: Zac Medico To: gentoo-portage-dev@lists.gentoo.org Cc: Zac Medico Subject: [gentoo-portage-dev] [PATCH] SyncManager: redirect command stderr to stdout (bug 566132) Date: Sun, 22 Nov 2015 12:10:00 -0800 Message-Id: <1448223000-11588-1-git-send-email-zmedico@gentoo.org> X-Mailer: git-send-email 2.4.9 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: acf56721-cf94-472d-aef2-0500c7f24621 X-Archives-Hash: 7b41de805583df4c4fcc3c7a8e2269a1 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