diff options
author | Stephen Bennett <spb@gentoo.org> | 2006-09-05 18:09:57 +0000 |
---|---|---|
committer | Stephen Bennett <spb@gentoo.org> | 2006-09-05 18:09:57 +0000 |
commit | 11336fbff3936890075d72c7257cb459c317a7f0 (patch) | |
tree | b5c0b91a9db84922e0f223d4cfd615da72dcab7f /eclass | |
parent | Stable on alpha wrt Bug #146417. (diff) | |
download | gentoo-2-11336fbff3936890075d72c7257cb459c317a7f0.tar.gz gentoo-2-11336fbff3936890075d72c7257cb459c317a7f0.tar.bz2 gentoo-2-11336fbff3936890075d72c7257cb459c317a7f0.zip |
Fix sandbox violations
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/subversion.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index 8cd5f81b93c0..8baa287308dc 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.34 2006/09/03 13:01:57 hattya Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.35 2006/09/05 18:09:57 spb Exp $ ## --------------------------------------------------------------------------- # # Author: Akinori Hattori <hattya@gentoo.org> @@ -155,6 +155,9 @@ function subversion_fetch() { if [[ ! -d "${ESVN_STORE_DIR}" ]]; then debug-print "${FUNCNAME}: initial checkout. creating subversion directory" + # Fix sandbox violations + addwrite ${ESVN_STORE_DIR%/*} + mkdir -p "${ESVN_STORE_DIR}" || die "${ESVN}: can't mkdir ${ESVN_STORE_DIR}." fi @@ -189,6 +192,9 @@ function subversion_fetch() { einfo "subversion update start -->" einfo " repository: ${repo_uri}" + # Fix sandbox violations + addwrite "${ESVN_STORE_DIR}" + cd "${wc_path}" ${ESVN_UPDATE_CMD} ${ESVN_OPTIONS} || die "${ESVN}: can't update from ${repo_uri}." |