diff options
author | 2014-10-31 00:57:49 +0000 | |
---|---|---|
committer | 2014-10-31 00:57:49 +0000 | |
commit | bcfcfaa4026289e2bac32196a52b0a9958a0175d (patch) | |
tree | a5fb8c5b819b88ca199cc4b78495cc69c2f9d2bf /eclass | |
parent | Version bump; drop old (diff) | |
download | gentoo-2-bcfcfaa4026289e2bac32196a52b0a9958a0175d.tar.gz gentoo-2-bcfcfaa4026289e2bac32196a52b0a9958a0175d.tar.bz2 gentoo-2-bcfcfaa4026289e2bac32196a52b0a9958a0175d.zip |
Make sure BUILD_DIR exists before pushd'ing into it.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/multibuild.eclass | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index ce16b5f94b12..8caf1ab73c3c 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1396 2014/10/30 13:21:25 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1397 2014/10/31 00:57:49 pesa Exp $ + + 31 Oct 2014; Davide Pesavento <pesa@gentoo.org> multibuild.eclass: + Make sure BUILD_DIR exists before pushd'ing into it. 30 Oct 2014; Pacho Ramos <pacho@gentoo.org> vala.eclass: Fix repoman warnings (#521980 by Arfrever Frehtes Taifersar Arahesis) diff --git a/eclass/multibuild.eclass b/eclass/multibuild.eclass index de5804dd883a..03e628077f3e 100644 --- a/eclass/multibuild.eclass +++ b/eclass/multibuild.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multibuild.eclass,v 1.18 2014/05/10 21:36:49 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multibuild.eclass,v 1.19 2014/10/31 00:57:49 pesa Exp $ # @ECLASS: multibuild # @MAINTAINER: @@ -237,6 +237,7 @@ run_in_build_dir() { [[ ${#} -ne 0 ]] || die "${FUNCNAME}: no command specified." [[ ${BUILD_DIR} ]] || die "${FUNCNAME}: BUILD_DIR not set." + mkdir -p "${BUILD_DIR}" || die pushd "${BUILD_DIR}" >/dev/null || die "${@}" ret=${?} |