summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-09-08 21:23:03 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-09-08 21:23:03 +0000
commit48a9885be378a3aab7d2e3c26377d4bb0bf2af29 (patch)
tree870ab5cdcee303b3932fe27299e088a846dbcb3c /eclass/cvs.eclass
parentfix error message when ECVS_TOP_DIR do not exist (diff)
downloadhistorical-48a9885be378a3aab7d2e3c26377d4bb0bf2af29.tar.gz
historical-48a9885be378a3aab7d2e3c26377d4bb0bf2af29.tar.bz2
historical-48a9885be378a3aab7d2e3c26377d4bb0bf2af29.zip
fix error message when ECVS_TOP_DIR do not exist; and sandbox issues
Diffstat (limited to 'eclass/cvs.eclass')
-rw-r--r--eclass/cvs.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index a2c711f674c0..1969e022bd02 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.15 2002/09/08 21:21:06 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.16 2002/09/08 21:23:03 azarah Exp $
# This eclass provides the generic cvs fetching functions.
ECLASS=cvs
@@ -82,6 +82,7 @@ DIR=$DIR"
# otherwise addwrite() doesn't work
if [ -n "$ECVS_TOP_DIR" ]; then
# create $ECVS_TOP_DIR if missing
+ addwrite $ECVS_TOP_DIR
[ ! -d $ECVS_TOP_DIR -a ! -L $ECVS_TOP_DIR ] && mkdir -p $ECVS_TOP_DIR
cd -P $ECVS_TOP_DIR
ECVS_TOP_DIR="`pwd`"