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

Diff of /eclass/subversion.eclass

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

Revision 1.35 Revision 1.36
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/subversion.eclass,v 1.35 2006/09/05 18:09:57 spb Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.36 2006/09/06 15:15:53 joker Exp $
4 4
5## --------------------------------------------------------------------------- # 5## --------------------------------------------------------------------------- #
6# Author: Akinori Hattori <hattya@gentoo.org> 6# Author: Akinori Hattori <hattya@gentoo.org>
7# 7#
8# The subversion eclass is written to fetch the software sources from 8# The subversion eclass is written to fetch the software sources from
175 if [[ ! -d "${wc_path}/.svn" ]]; then 175 if [[ ! -d "${wc_path}/.svn" ]]; then
176 # first check out 176 # first check out
177 einfo "subversion check out start -->" 177 einfo "subversion check out start -->"
178 einfo " repository: ${repo_uri}" 178 einfo " repository: ${repo_uri}"
179 179
180 # Fix sandbox violations
181 addwrite "${ESVN_STORE_DIR}"
182
180 mkdir -p "${ESVN_PROJECT}" || die "${ESVN}: can't mkdir ${ESVN_PROJECT}." 183 mkdir -p "${ESVN_PROJECT}" || die "${ESVN}: can't mkdir ${ESVN_PROJECT}."
181 cd "${ESVN_PROJECT}" 184 cd "${ESVN_PROJECT}"
182 ${ESVN_FETCH_CMD} ${ESVN_OPTIONS} "${repo_uri}" || die "${ESVN}: can't fetch from ${repo_uri}." 185 ${ESVN_FETCH_CMD} ${ESVN_OPTIONS} "${repo_uri}" || die "${ESVN}: can't fetch from ${repo_uri}."
183 186
184 else 187 else
189 fi 192 fi
190 193
191 # update working copy 194 # update working copy
192 einfo "subversion update start -->" 195 einfo "subversion update start -->"
193 einfo " repository: ${repo_uri}" 196 einfo " repository: ${repo_uri}"
194
195 # Fix sandbox violations
196 addwrite "${ESVN_STORE_DIR}"
197 197
198 cd "${wc_path}" 198 cd "${wc_path}"
199 ${ESVN_UPDATE_CMD} ${ESVN_OPTIONS} || die "${ESVN}: can't update from ${repo_uri}." 199 ${ESVN_UPDATE_CMD} ${ESVN_OPTIONS} || die "${ESVN}: can't update from ${repo_uri}."
200 200
201 fi 201 fi

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20