From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76EA2158018 for ; Sat, 2 Oct 2021 10:38:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B169AE08ED; Sat, 2 Oct 2021 10:37:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5BD16E08CE for ; Sat, 2 Oct 2021 10:37:53 +0000 (UTC) From: =?UTF-8?q?Ulrich=20M=C3=BCller?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Ulrich=20M=C3=BCller?= Subject: [gentoo-dev] [PATCH 2/3] cvs.eclass: Don't rely on sandbox internals Date: Sat, 2 Oct 2021 12:37:31 +0200 Message-Id: <20211002103732.19545-2-ulm@gentoo.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211002103732.19545-1-ulm@gentoo.org> References: <20211002103732.19545-1-ulm@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 0d223f72-fb86-4b31-ab68-32ea12b2a92e X-Archives-Hash: a2b8527dba66976a911843b95eccaacc Signed-off-by: Ulrich Müller --- 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