commit:     636d81ebda2671867e2015d15faa3e818b32604b
Author:     Nikoli <nikoli <AT> gmx <DOT> us>
AuthorDate: Wed Nov 18 09:54:40 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Nov 18 09:54:40 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=636d81eb

cmake-utils.eclass: check exit codes of executed commands

 eclass/cmake-utils.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index f6bb9dd..2b858cc 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -220,7 +220,7 @@ _check_build_dir() {
        # Backwards compatibility for getting the value.
        CMAKE_BUILD_DIR=${BUILD_DIR}
 
-       mkdir -p "${BUILD_DIR}"
+       mkdir -p "${BUILD_DIR}" || die
        echo ">>> Working in BUILD_DIR: \"$BUILD_DIR\""
 }
 
@@ -405,7 +405,7 @@ _cleanup_cmake() {
        [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] && {
                local name
                for name in ${CMAKE_REMOVE_MODULES_LIST} ; do
-                       find "${S}" -name ${name}.cmake -exec rm -v {} +
+                       find "${S}" -name ${name}.cmake -exec rm -v {} + || die
                done
        }
 

Reply via email to