• [gentoo-dev] [PATCH 2/3] cvs.eclass: Don't rely on sandbox internals

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Sat Oct 2 12:40:02 2021
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    eclass/cvs.eclass | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
    index 2868cb31f317..34c32a4a4190 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,
    --
    2.33.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)