summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorTal Peer <coredumb@gentoo.org>2003-09-28 17:19:43 +0000
committerTal Peer <coredumb@gentoo.org>2003-09-28 17:19:43 +0000
commit65b57e4a7aa9e878783c8d5ec2a0005174e034fc (patch)
tree9a6d75da32a7f292cd9d02b12d5405791c1f7683 /eclass
parentAdded ~amd64 keyword. (diff)
downloadgentoo-2-65b57e4a7aa9e878783c8d5ec2a0005174e034fc.tar.gz
gentoo-2-65b57e4a7aa9e878783c8d5ec2a0005174e034fc.tar.bz2
gentoo-2-65b57e4a7aa9e878783c8d5ec2a0005174e034fc.zip
Implemented ECVS_CLEAN - for fetching a clean copy of the repository when updating it.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cvs.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index 05d70ff9f564..72c62c3206d5 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.47 2003/09/28 17:08:35 coredumb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.48 2003/09/28 17:19:43 coredumb Exp $
#
# Current Maintainer: Tal Peer <coredumb@gentoo.org>
# Original Author: Dan Armak <danarmak@gentoo.org>
@@ -81,6 +81,8 @@ INHERITED="$INHERITED $ECLASS"
# deprecated - do not use
[ -n "$ECVS_SUBDIR" ] && die "ERROR: deprecated ECVS_SUBDIR defined. Please fix this ebuild."
+# ECVS_CLEAN: set this to something to get a clean copy when updating (passes the -C option to cvs update)
+
# --- end ebuild-configurable settings ---
# add cvs to deps
@@ -126,6 +128,10 @@ cvs_fetch() {
ECVS_CO_OPTS="$ECVS_CO_OPTS -d $ECVS_LOCALNAME"
fi
+ if [ -n "$ECVS_CLEAN" ]; then
+ ECVS_UP_OPTS="$ECVS_UP_OPTS -C"
+ fi
+
# it's easiest to always be in "run-as mode", logic-wise
# or would be if sudo didn't ask for a password even when sudo'ing to `whoami`
if [ -z "$ECVS_RUNAS" ]; then