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
commit27b44e7f744fabf70bc837c0f57775eae8edc572 (patch)
tree1a1921403290381489f2e2be83f1e59089c925f7 /eclass/cvs.eclass
parentfix error message when ECVS_TOP_DIR do not exist (diff)
downloadgentoo-2-27b44e7f744fabf70bc837c0f57775eae8edc572.tar.gz
gentoo-2-27b44e7f744fabf70bc837c0f57775eae8edc572.tar.bz2
gentoo-2-27b44e7f744fabf70bc837c0f57775eae8edc572.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`"