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 639941384B4 for ; Thu, 19 Nov 2015 15:14:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6BCFE080E; Thu, 19 Nov 2015 15:14:14 +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 64CB0E07C5 for ; Thu, 19 Nov 2015 15:14:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50D1E3409EC for ; Thu, 19 Nov 2015 15:14:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 76CD39F5 for ; Thu, 19 Nov 2015 15:14:07 +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: <1447946015.40a95dd1aa272f1e9b5c27c53e847cdc8237f1c6.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:python-eapi6 commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/python-utils-r1.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 40a95dd1aa272f1e9b5c27c53e847cdc8237f1c6 X-VCS-Branch: python-eapi6 Date: Thu, 19 Nov 2015 15:14:07 +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: 2ba6ad89-0d6f-47bd-b564-ada4f17ad04e X-Archives-Hash: b5a0e7d2ffe11ed5d3cc500161249140 commit: 40a95dd1aa272f1e9b5c27c53e847cdc8237f1c6 Author: Michał Górny gentoo org> AuthorDate: Wed Nov 18 19:45:05 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Nov 19 15:13:35 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40a95dd1 python-utils-r1.eclass: Add missing ||die on file read eclass/python-utils-r1.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 0a04e12..201b0c4 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -1038,12 +1038,12 @@ python_fix_shebang() { local shebang i local error= from= - IFS= read -r shebang <"${f}" + IFS= read -r shebang <"${f}" || die # First, check if it's shebang at all... if [[ ${shebang} == '#!'* ]]; then local split_shebang=() - read -r -a split_shebang <<<${shebang} + read -r -a split_shebang <<<${shebang} || die # Match left-to-right in a loop, to avoid matching random # repetitions like 'python2.7 python2'.