python-utils-r1.eclass: Add missing ||die on 'cat' file writes
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Nov 2015 18:46:26 +0000 (19:46 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Nov 2015 19:09:06 +0000 (20:09 +0100)
eclass/python-utils-r1.eclass

index 5876d84055905b75d95f71ef4b4ed9868fdaaef2..c0451a702582404f2d90743b69052f64b1a5af36 100644 (file)
@@ -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