commit:     913e4234fa43ae7e55e7b5f8bc16604df2c9417b
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  2 10:28:00 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Oct  4 06:40:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=913e4234

cvs.eclass: Don't rely on sandbox internals

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/cvs.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index 2868cb31f31..34c32a4a419 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -257,10 +257,10 @@ cvs_fetch() {
                # just remove the last path element in the string)
 
                debug-print "${FUNCNAME}: checkout mode. creating cvs directory"
-               addwrite /foobar
-               addwrite /
-               mkdir -p "/${ECVS_TOP_DIR}"
-               export SANDBOX_WRITE="${SANDBOX_WRITE//:\/foobar:\/}"
+               (
+                       addwrite /
+                       mkdir -p "${ECVS_TOP_DIR}" || die "mkdir 
${ECVS_TOP_DIR} failed"
+               )
        fi
 
        # In case ECVS_TOP_DIR is a symlink to a dir, get the real path,

Reply via email to