Gentoo Archives: gentoo-dev

From: Davide Pesavento <pesa@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] Re: [PATCH 1/2] multibuild.eclass: make sure BUILD_DIR exists before pushd'ing into it.
Date: Fri, 31 Oct 2014 00:59:37
Message-Id: CADfzvvZUyB_Rj95evoBc4uM=yJqQyqMGCFQJxhS=4EfcozFAaw@mail.gmail.com
In Reply to: [gentoo-dev] [PATCH 1/2] multibuild.eclass: make sure BUILD_DIR exists before pushd'ing into it. by Davide Pesavento
1 On Thu, Oct 23, 2014 at 10:30 PM, Davide Pesavento <pesa@g.o> wrote:
2 > Index: multibuild.eclass
3 > ===================================================================
4 > RCS file: /var/cvsroot/gentoo-x86/eclass/multibuild.eclass,v
5 > retrieving revision 1.18
6 > diff -u -r1.18 multibuild.eclass
7 > --- multibuild.eclass 10 May 2014 21:36:49 -0000 1.18
8 > +++ multibuild.eclass 23 Oct 2014 20:10:21 -0000
9 > @@ -237,6 +237,7 @@
10 > [[ ${#} -ne 0 ]] || die "${FUNCNAME}: no command specified."
11 > [[ ${BUILD_DIR} ]] || die "${FUNCNAME}: BUILD_DIR not set."
12 >
13 > + mkdir -p "${BUILD_DIR}" || die
14 > pushd "${BUILD_DIR}" >/dev/null || die
15 > "${@}"
16 > ret=${?}
17
18 Applied.