diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-10-14 13:32:33 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-10-14 13:32:33 +0000 |
commit | 3f8c2f25efcc7c5c6abab03bb722c45b8e2f98ee (patch) | |
tree | cf485c9545e8cbde44da9865c11580fd14c89f8d /eclass/git-r3.eclass | |
parent | Version bump, wrt bug #487866. Add parallel make fixes, wrt bug #486434, than... (diff) | |
download | historical-3f8c2f25efcc7c5c6abab03bb722c45b8e2f98ee.tar.gz historical-3f8c2f25efcc7c5c6abab03bb722c45b8e2f98ee.tar.bz2 historical-3f8c2f25efcc7c5c6abab03bb722c45b8e2f98ee.zip |
Add missing "die" calls as reported by Nikoli.
Diffstat (limited to 'eclass/git-r3.eclass')
-rw-r--r-- | eclass/git-r3.eclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index 09c239dbdcda..32300387493d 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.16 2013/10/13 07:14:58 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.17 2013/10/14 13:32:33 mgorny Exp $ # @ECLASS: git-r3.eclass # @MAINTAINER: @@ -212,7 +212,7 @@ _git-r3_set_gitdir() { if [[ ! -d ${EGIT3_STORE_DIR} ]]; then ( addwrite / - mkdir -m0755 -p "${EGIT3_STORE_DIR}" + mkdir -m0755 -p "${EGIT3_STORE_DIR}" || die ) || die "Unable to create ${EGIT3_STORE_DIR}" fi @@ -254,17 +254,17 @@ _git-r3_set_submodules() { # skip modules that have 'update = none', bug #487262. local upd=$(echo "${data}" | git config -f /dev/fd/0 \ - submodule."${subname}".update) + submodule."${subname}".update || die) [[ ${upd} == none ]] && continue submodules+=( "${subname}" "$(echo "${data}" | git config -f /dev/fd/0 \ - submodule."${subname}".url)" + submodule."${subname}".url || die)" "$(echo "${data}" | git config -f /dev/fd/0 \ - submodule."${subname}".path)" + submodule."${subname}".path || die)" ) - done < <(echo "${data}" | git config -f /dev/fd/0 -l) + done < <(echo "${data}" | git config -f /dev/fd/0 -l || die) } # @FUNCTION: _git-r3_smart_fetch @@ -561,7 +561,7 @@ git-r3_checkout() { local -x GIT_DIR GIT_WORK_TREE _git-r3_set_gitdir "${repos[0]}" GIT_WORK_TREE=${out_dir} - mkdir -p "${GIT_WORK_TREE}" + mkdir -p "${GIT_WORK_TREE}" || die einfo "Checking out ${repos[0]} to ${out_dir} ..." |