Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: cvs.eclass
Date: Sat, 21 Aug 2010 18:21:10
Message-Id: 20100821182106.96DD82004E@flycatcher.gentoo.org
1 vapier 10/08/21 18:21:06
2
3 Modified: cvs.eclass
4 Log:
5 support ESCM_OFFLINE #307743 by Martin Väth
6
7 Revision Changes Path
8 1.72 eclass/cvs.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cvs.eclass?rev=1.72&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cvs.eclass?rev=1.72&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cvs.eclass?r1=1.71&r2=1.72
13
14 Index: cvs.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v
17 retrieving revision 1.71
18 retrieving revision 1.72
19 diff -u -r1.71 -r1.72
20 --- cvs.eclass 19 Jun 2010 00:35:11 -0000 1.71
21 +++ cvs.eclass 21 Aug 2010 18:21:06 -0000 1.72
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.71 2010/06/19 00:35:11 abcd Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.72 2010/08/21 18:21:06 vapier Exp $
27
28 # @ECLASS: cvs.eclass
29 # @MAINTAINER:
30 @@ -62,6 +62,12 @@
31 # CVS options given after the cvs checkout command.
32 [ -z "$ECVS_CO_OPTS" ] && ECVS_CO_OPTS=""
33
34 +# @ECLASS-VARIABLE: ECVS_OFFLINE
35 +# @DESCRIPTION:
36 +# Set this variable to a non-empty value to disable the automatic updating of
37 +# a CVS source tree. This is intended to be set outside the cvs source
38 +# tree by users.
39 +: ${ECVS_OFFLINE:=${ESCM_OFFLINE}}
40
41 # @ECLASS-VARIABLE: ECVS_LOCAL
42 # @DESCRIPTION:
43 @@ -511,7 +517,7 @@
44
45 local sanitized_pn=$(echo "${PN}" | LC_ALL=C sed -e 's:[^A-Za-z0-9_]:_:g')
46 local offline_pkg_var="ECVS_OFFLINE_${sanitized_pn}"
47 - if [ "${!offline_pkg_var}" == "1" -o "$ECVS_OFFLINE" == "1" -o "$ECVS_SERVER" == "offline" ]; then
48 + if [[ -n ${!offline_pkg_var}${ECVS_OFFLINE} ]] || [[ "$ECVS_SERVER" == "offline" ]] ; then
49 # We're not required to fetch anything; the module already
50 # exists and shouldn't be updated.
51 if [ -d "${ECVS_TOP_DIR}/${ECVS_LOCALNAME}" ]; then