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 67F0A1381F3 for ; Wed, 21 Aug 2013 10:43:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06F65E0C9D; Wed, 21 Aug 2013 10:43:09 +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 989D2E0C9D for ; Wed, 21 Aug 2013 10:43:08 +0000 (UTC) Received: from pomiot.lan (77-254-183-247.adsl.inetia.pl [77.254.183.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id C55FF33EC26; Wed, 21 Aug 2013 10:43:06 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-python@lists.gentoo.org Cc: python@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-python] [PATCH distutils-r1 2/4] Add proper error handling to _distutils-r1_disable_ez_setup. Date: Wed, 21 Aug 2013 12:43:06 +0200 Message-Id: <1377081788-1666-2-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <20130821124232.00996a19@gentoo.org> References: <20130821124232.00996a19@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org X-Archives-Salt: 75ff238d-c143-4fa4-a6fb-bce8be86e3f1 X-Archives-Hash: 659f7c42a6e2bc173a0366cb225562ab --- gx86/eclass/distutils-r1.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass index 97ddbe4..fba7634 100644 --- a/gx86/eclass/distutils-r1.eclass +++ b/gx86/eclass/distutils-r1.eclass @@ -310,8 +310,12 @@ distutils_install_for_testing() { _distutils-r1_disable_ez_setup() { local stub="def use_setuptools(*args, **kwargs): pass" - [[ -f ez_setup.py ]] && echo "${stub}" > ez_setup.py - [[ -f distribute_setup.py ]] && echo "${stub}" > distribute_setup.py + if [[ -f ez_setup.py ]]; then + echo "${stub}" > ez_setup.py || die + fi + if [[ -f distribute_setup.py ]]; then + echo "${stub}" > distribute_setup.py || die + fi } # @FUNCTION: distutils-r1_python_prepare_all -- 1.8.3.2