Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH 2/3] cvs.eclass: Don't rely on sandbox internals
Date: Sat, 02 Oct 2021 10:38:10
Message-Id: 20211002103732.19545-2-ulm@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/3] cvs.eclass: Support EAPI 8, drop EAPI 6 and older by "Ulrich Müller"
1 Signed-off-by: Ulrich Müller <ulm@g.o>
2 ---
3 eclass/cvs.eclass | 8 ++++----
4 1 file changed, 4 insertions(+), 4 deletions(-)
5
6 diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
7 index 2868cb31f317..34c32a4a4190 100644
8 --- a/eclass/cvs.eclass
9 +++ b/eclass/cvs.eclass
10 @@ -257,10 +257,10 @@ cvs_fetch() {
11 # just remove the last path element in the string)
12
13 debug-print "${FUNCNAME}: checkout mode. creating cvs directory"
14 - addwrite /foobar
15 - addwrite /
16 - mkdir -p "/${ECVS_TOP_DIR}"
17 - export SANDBOX_WRITE="${SANDBOX_WRITE//:\/foobar:\/}"
18 + (
19 + addwrite /
20 + mkdir -p "${ECVS_TOP_DIR}" || die "mkdir ${ECVS_TOP_DIR} failed"
21 + )
22 fi
23
24 # In case ECVS_TOP_DIR is a symlink to a dir, get the real path,
25 --
26 2.33.0