Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 02/29] python-utils-r1.eclass: Add missing ||die on 'cat' file writes
Date: Sun, 22 Nov 2015 19:52:27
Message-Id: 1448221870-17269-3-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCHES] Clean-up & EAPI 6 support for python-r1 suite by "Michał Górny"
1 ---
2 eclass/python-utils-r1.eclass | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
6 index 1362ff9..0a04e12 100644
7 --- a/eclass/python-utils-r1.eclass
8 +++ b/eclass/python-utils-r1.eclass
9 @@ -891,7 +891,7 @@ python_wrapper_setup() {
10 # note: we don't use symlinks because python likes to do some
11 # symlink reading magic that breaks stuff
12 # https://bugs.gentoo.org/show_bug.cgi?id=555752
13 - cat > "${workdir}/bin/python" <<-_EOF_
14 + cat > "${workdir}/bin/python" <<-_EOF_ || die
15 #!/bin/sh
16 exec "${PYTHON}" "\${@}"
17 _EOF_
18 @@ -904,7 +904,7 @@ python_wrapper_setup() {
19 if [[ ${EPYTHON} == python* ]]; then
20 python_export "${impl}" PYTHON_CONFIG
21
22 - cat > "${workdir}/bin/python-config" <<-_EOF_
23 + cat > "${workdir}/bin/python-config" <<-_EOF_ || die
24 #!/bin/sh
25 exec "${PYTHON_CONFIG}" "\${@}"
26 _EOF_
27 @@ -926,7 +926,7 @@ python_wrapper_setup() {
28
29 local x
30 for x in "${nonsupp[@]}"; do
31 - cat >"${workdir}"/bin/${x} <<__EOF__
32 + cat >"${workdir}"/bin/${x} <<__EOF__ || die
33 #!/bin/sh
34 echo "${x} is not supported by ${EPYTHON}" >&2
35 exit 127
36 --
37 2.6.3