diff options
author | Christian Birchinger <joker@gentoo.org> | 2006-09-06 15:22:34 +0000 |
---|---|---|
committer | Christian Birchinger <joker@gentoo.org> | 2006-09-06 15:22:34 +0000 |
commit | bbb3469737215af126681ecfd46969b6d525dc79 (patch) | |
tree | 7060d64adcc3fd5c50047c9f181d43512174375c /eclass/subversion.eclass | |
parent | Moved addwrite() to allow fresh repositories to be created (diff) | |
download | gentoo-2-bbb3469737215af126681ecfd46969b6d525dc79.tar.gz gentoo-2-bbb3469737215af126681ecfd46969b6d525dc79.tar.bz2 gentoo-2-bbb3469737215af126681ecfd46969b6d525dc79.zip |
Moved addwrite() outside the if statement since it's needed in both cases.
Diffstat (limited to 'eclass/subversion.eclass')
-rw-r--r-- | eclass/subversion.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index a7014ad513fd..d2db4bf1f9c1 100644 --- a/eclass/subversion.eclass +++ b/eclass/subversion.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.36 2006/09/06 15:15:53 joker Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.37 2006/09/06 15:22:34 joker Exp $ ## --------------------------------------------------------------------------- # # Author: Akinori Hattori <hattya@gentoo.org> @@ -172,14 +172,14 @@ function subversion_fetch() { debug-print "${FUNCNAME}: ESVN_OPTIONS = \"${ESVN_OPTIONS}\"" + # Fix sandbox violations + addwrite "${ESVN_STORE_DIR}" + if [[ ! -d "${wc_path}/.svn" ]]; then # first check out einfo "subversion check out start -->" einfo " repository: ${repo_uri}" - # Fix sandbox violations - addwrite "${ESVN_STORE_DIR}" - mkdir -p "${ESVN_PROJECT}" || die "${ESVN}: can't mkdir ${ESVN_PROJECT}." cd "${ESVN_PROJECT}" ${ESVN_FETCH_CMD} ${ESVN_OPTIONS} "${repo_uri}" || die "${ESVN}: can't fetch from ${repo_uri}." |