/[gentoo-x86]/eclass/git-r3.eclass
Gentoo

Diff of /eclass/git-r3.eclass

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

Revision 1.15 Revision 1.16
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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/git-r3.eclass,v 1.15 2013/10/09 17:14:07 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.16 2013/10/13 07:14:58 mgorny Exp $
4 4
5# @ECLASS: git-r3.eclass 5# @ECLASS: git-r3.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: Eclass for fetching and unpacking git repositories. 8# @BLURB: Eclass for fetching and unpacking git repositories.
383# If the repository contains submodules, they will be fetched 383# If the repository contains submodules, they will be fetched
384# recursively. 384# recursively.
385git-r3_fetch() { 385git-r3_fetch() {
386 debug-print-function ${FUNCNAME} "$@" 386 debug-print-function ${FUNCNAME} "$@"
387 387
388 [[ ${EVCS_OFFLINE} ]] && return
389
388 local repos 390 local repos
389 if [[ ${1} ]]; then 391 if [[ ${1} ]]; then
390 repos=( ${1} ) 392 repos=( ${1} )
391 elif [[ $(declare -p EGIT_REPO_URI) == "declare -a"* ]]; then 393 elif [[ $(declare -p EGIT_REPO_URI) == "declare -a"* ]]; then
392 repos=( "${EGIT_REPO_URI[@]}" ) 394 repos=( "${EGIT_REPO_URI[@]}" )
693} 695}
694 696
695git-r3_src_fetch() { 697git-r3_src_fetch() {
696 debug-print-function ${FUNCNAME} "$@" 698 debug-print-function ${FUNCNAME} "$@"
697 699
698 [[ ${EVCS_OFFLINE} ]] && return
699
700 if [[ ! ${EGIT3_STORE_DIR} && ${EGIT_STORE_DIR} ]]; then 700 if [[ ! ${EGIT3_STORE_DIR} && ${EGIT_STORE_DIR} ]]; then
701 ewarn "You have set EGIT_STORE_DIR but not EGIT3_STORE_DIR. Please consider" 701 ewarn "You have set EGIT_STORE_DIR but not EGIT3_STORE_DIR. Please consider"
702 ewarn "setting EGIT3_STORE_DIR for git-r3.eclass. It is recommended to use" 702 ewarn "setting EGIT3_STORE_DIR for git-r3.eclass. It is recommended to use"
703 ewarn "a different directory than EGIT_STORE_DIR to ease removing old clones" 703 ewarn "a different directory than EGIT_STORE_DIR to ease removing old clones"
704 ewarn "when git-2 eclass becomes deprecated." 704 ewarn "when git-2 eclass becomes deprecated."

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20