summaryrefslogtreecommitdiff
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
commita7e26b2a397bdd4d8d6288045a32f9be7f63a9c5 (patch)
tree30f07e5c119880c7e2c6b56c5a48060bc59b043c /eclass/cvs.eclass
parentAdded ~amd64 keyword. (diff)
downloadhistorical-a7e26b2a397bdd4d8d6288045a32f9be7f63a9c5.tar.gz
historical-a7e26b2a397bdd4d8d6288045a32f9be7f63a9c5.tar.bz2
historical-a7e26b2a397bdd4d8d6288045a32f9be7f63a9c5.zip
Implemented ECVS_CLEAN - for fetching a clean copy of the repository when updating it.
Diffstat (limited to 'eclass/cvs.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