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 8DF531381F3 for ; Mon, 5 Aug 2013 08:50:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26905E09F7; Mon, 5 Aug 2013 08:50:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B59D7E09F7 for ; Mon, 5 Aug 2013 08:50:19 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D26733E915 for ; Mon, 5 Aug 2013 08:50:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 26426E468F for ; Mon, 5 Aug 2013 08:50:17 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1375692628.998a0462a7fa71627f437b4e8b1310cc7de88962.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/bash/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/bash/bashserver.py X-VCS-Directories: gentoopm/bash/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 998a0462a7fa71627f437b4e8b1310cc7de88962 X-VCS-Branch: master Date: Mon, 5 Aug 2013 08:50:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c1d6822e-1c1f-42c1-9962-629510538165 X-Archives-Hash: eaa76066b1b10f76610d9ec83573f335 commit: 998a0462a7fa71627f437b4e8b1310cc7de88962 Author: Michał Górny gentoo org> AuthorDate: Mon Aug 5 08:50:28 2013 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Aug 5 08:50:28 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoopm.git;a=commit;h=998a0462 BashParser: just discard error output for now. --- gentoopm/bash/bashserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gentoopm/bash/bashserver.py b/gentoopm/bash/bashserver.py index 0db1dff..69ed831 100644 --- a/gentoopm/bash/bashserver.py +++ b/gentoopm/bash/bashserver.py @@ -42,11 +42,11 @@ class BashServer(BashParser): f.flush() self._write('exit 0', - 'bash -n %s && printf "OK\\0" || printf "FAIL\\0"' % repr(f.name)) + 'bash -n %s &>/dev/null && printf "OK\\0" || printf "FAIL\\0"' % repr(f.name)) resp = self._read1() if resp == 'OK': - self._write('source %s >&2; printf "DONE\\0"' % repr(f.name)) + self._write('source %s &>/dev/null; printf "DONE\\0"' % repr(f.name)) if self._read1() != 'DONE': raise AssertionError('Sourcing unexpected caused stdout output')