/[gentoo-x86]/eclass/cvs.eclass
Gentoo

Diff of /eclass/cvs.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.64 Revision 1.65
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.64 2006/06/15 14:45:59 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.65 2006/10/14 20:27:21 swegener Exp $
4# 4#
5# Maintainer: vapier@gentoo.org (and anyone who wants to help) 5# Maintainer: vapier@gentoo.org (and anyone who wants to help)
6 6
7inherit eutils 7inherit eutils
8 8
485 [ -z "$ECVS_MODULE" ] && die "ERROR: CVS module not set, cannot continue." 485 [ -z "$ECVS_MODULE" ] && die "ERROR: CVS module not set, cannot continue."
486 486
487 local ECVS_LOCALNAME="${ECVS_LOCALNAME}" 487 local ECVS_LOCALNAME="${ECVS_LOCALNAME}"
488 488
489 if [ -z "$ECVS_LOCALNAME" ]; then 489 if [ -z "$ECVS_LOCALNAME" ]; then
490 ECVS_LOCALNAME="$ECVS_MODULE" 490 ECVS_LOCALNAME="$ECVS_MODULE"
491 fi 491 fi
492 492
493 local offline_pkg_var="ECVS_OFFLINE_${PN}" 493 local offline_pkg_var="ECVS_OFFLINE_${PN}"
494 if [ "${!offline_pkg_var}" == "1" -o "$ECVS_OFFLINE" == "1" -o "$ECVS_SERVER" == "offline" ]; then 494 if [ "${!offline_pkg_var}" == "1" -o "$ECVS_OFFLINE" == "1" -o "$ECVS_SERVER" == "offline" ]; then
495 # We're not required to fetch anything; the module already 495 # We're not required to fetch anything; the module already
496 # exists and shouldn't be updated. 496 # exists and shouldn't be updated.
497 if [ -d "${ECVS_TOP_DIR}/${ECVS_LOCALNAME}" ]; then 497 if [ -d "${ECVS_TOP_DIR}/${ECVS_LOCALNAME}" ]; then
498 debug-print "$FUNCNAME: offline mode" 498 debug-print "$FUNCNAME: offline mode"
499 else 499 else
500 debug-print "$FUNCNAME: Offline mode specified but directory ${ECVS_TOP_DIR}/${ECVS_LOCALNAME} not found, exiting with error" 500 debug-print "$FUNCNAME: Offline mode specified but directory ${ECVS_TOP_DIR}/${ECVS_LOCALNAME} not found, exiting with error"
501 die "ERROR: Offline mode specified, but directory ${ECVS_TOP_DIR}/${ECVS_LOCALNAME} not found. Aborting." 501 die "ERROR: Offline mode specified, but directory ${ECVS_TOP_DIR}/${ECVS_LOCALNAME} not found. Aborting."
502 fi 502 fi

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65

  ViewVC Help
Powered by ViewVC 1.1.20