Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 25 Jan 2016 14:09:26
Message-Id: 1453730823.83948becf477631f74025092000c48044c75143a.kensington@gentoo
1 commit: 83948becf477631f74025092000c48044c75143a
2 Author: Nikoli <nikoli <AT> gmx <DOT> us>
3 AuthorDate: Mon Jan 25 14:04:10 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 25 14:07:03 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83948bec
7
8 cmake-utils.eclass: check exit codes of executed commands
9
10 Gentoo-bug: 544966
11
12 eclass/cmake-utils.eclass | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
16 index b0e9bb0..58f93ac 100644
17 --- a/eclass/cmake-utils.eclass
18 +++ b/eclass/cmake-utils.eclass
19 @@ -219,7 +219,7 @@ _check_build_dir() {
20 # Backwards compatibility for getting the value.
21 CMAKE_BUILD_DIR=${BUILD_DIR}
22
23 - mkdir -p "${BUILD_DIR}"
24 + mkdir -p "${BUILD_DIR}" || die
25 echo ">>> Working in BUILD_DIR: \"$BUILD_DIR\""
26 }
27
28 @@ -431,7 +431,7 @@ enable_cmake-utils_src_configure() {
29 [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] && {
30 local name
31 for name in ${CMAKE_REMOVE_MODULES_LIST} ; do
32 - find "${S}" -name ${name}.cmake -exec rm -v {} +
33 + find "${S}" -name ${name}.cmake -exec rm -v {} + || die
34 done
35 }