summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-11-18 19:46:26 +0100
committerMichał Górny <mgorny@gentoo.org>2015-11-28 20:09:06 +0100
commitde298a8cdca412cb51fa4ccb42f08046fe19dc24 (patch)
tree817304288b5774fbc6f53d79fbb53d064de71883 /eclass/python-utils-r1.eclass
parentpython-utils-r1.eclass: Add missing ||die for external getters (diff)
downloadgentoo-de298a8cdca412cb51fa4ccb42f08046fe19dc24.tar.gz
gentoo-de298a8cdca412cb51fa4ccb42f08046fe19dc24.tar.bz2
gentoo-de298a8cdca412cb51fa4ccb42f08046fe19dc24.zip
python-utils-r1.eclass: Add missing ||die on 'cat' file writes
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 5876d8405590..c0451a702582 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -894,7 +894,7 @@ python_wrapper_setup() {
# note: we don't use symlinks because python likes to do some
# symlink reading magic that breaks stuff
# https://bugs.gentoo.org/show_bug.cgi?id=555752
- cat > "${workdir}/bin/python" <<-_EOF_
+ cat > "${workdir}/bin/python" <<-_EOF_ || die
#!/bin/sh
exec "${PYTHON}" "\${@}"
_EOF_
@@ -907,7 +907,7 @@ python_wrapper_setup() {
if [[ ${EPYTHON} == python* ]]; then
python_export "${impl}" PYTHON_CONFIG
- cat > "${workdir}/bin/python-config" <<-_EOF_
+ cat > "${workdir}/bin/python-config" <<-_EOF_ || die
#!/bin/sh
exec "${PYTHON_CONFIG}" "\${@}"
_EOF_
@@ -929,7 +929,7 @@ python_wrapper_setup() {
local x
for x in "${nonsupp[@]}"; do
- cat >"${workdir}"/bin/${x} <<__EOF__
+ cat >"${workdir}"/bin/${x} <<__EOF__ || die
#!/bin/sh
echo "${x} is not supported by ${EPYTHON}" >&2
exit 127