summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2004-02-08 14:37:59 +0000
committerAkinori Hattori <hattya@gentoo.org>2004-02-08 14:37:59 +0000
commitfb48003341c292d787ab0008e50bccc57ef01858 (patch)
tree4230396f3a4026a22c92789d7d363df4e2f70c23 /eclass/subversion.eclass
parentmask openoffice prerelease (diff)
downloadgentoo-2-fb48003341c292d787ab0008e50bccc57ef01858.tar.gz
gentoo-2-fb48003341c292d787ab0008e50bccc57ef01858.tar.bz2
gentoo-2-fb48003341c292d787ab0008e50bccc57ef01858.zip
added addwrite "${ESVN_STORE_DIR}" and many die.
Diffstat (limited to 'eclass/subversion.eclass')
-rw-r--r--eclass/subversion.eclass21
1 files changed, 12 insertions, 9 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass
index 27984d82ad9c..1676c2bc3dc1 100644
--- a/eclass/subversion.eclass
+++ b/eclass/subversion.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.3 2004/01/26 15:06:02 hattya Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.4 2004/02/08 14:37:59 hattya Exp $
## --------------------------------------------------------------------------- #
# Author: Akinori Hattori <hattya@gentoo.org>
@@ -95,12 +95,15 @@ subversion_svn_fetch() {
fi
if [ ! -d "${ESVN_STORE_DIR}" ]; then
- mkdir -p "${ESVN_STORE_DIR}"
+ # I don't know why this causes access violation.
+ addwrite "${ESVN_STORE_DIR}"
+
+ mkdir -p "${ESVN_STORE_DIR}" || die "subversion.eclass: can't mkdir ${ESVN_STORE_DIR}."
einfo "created store directory: ${ESVN_STORE_DIR}"
einfo
fi
- cd "${ESVN_STORE_DIR}"
+ cd "${ESVN_STORE_DIR}" || die "subversion.eclass: can't cd to ${ESVN_STORE_DIR}."
# every time
addwrite "/etc/subversion"
@@ -122,10 +125,10 @@ subversion_svn_fetch() {
einfo
einfo "check out from: ${ESVN_REPO_URI}"
- mkdir -p "${ESVN_PROJECT}"
- cd "${ESVN_PROJECT}"
+ mkdir -p "${ESVN_PROJECT}" || die "subversion.eclass: can't mkdir ${ESVN_PROJECT}."
+ cd "${ESVN_PROJECT}" || die "subversion.eclass: can't cd to ${ESVN_PROJECT}."
- ${ESVN_FETCH_CMD} "${ESVN_REPO_URI}"
+ ${ESVN_FETCH_CMD} "${ESVN_REPO_URI}" || die "subversion.eclass: can't fetch from ${ESVN_REPO_URI}."
einfo " stored in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}"
else
@@ -134,13 +137,13 @@ subversion_svn_fetch() {
einfo
einfo " update from: ${ESVN_REPO_URI}"
- cd "${ESVN_CO_DIR}"
- ${ESVN_UPDATE_CMD}
+ cd "${ESVN_CO_DIR}" || die "subversion.eclass: can't cd to ${ESVN_CO_DIR}."
+ ${ESVN_UPDATE_CMD} || die "subversion.eclass: can't update from ${ESVN_REPO_URI}."
einfo " updated in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}"
fi
# copy to the ${WORKDIR}
- cp -Rf "${ESVN_STORE_DIR}/${ESVN_CO_DIR}" "${WORKDIR}/${P}"
+ cp -Rf "${ESVN_STORE_DIR}/${ESVN_CO_DIR}" "${WORKDIR}/${P}" || die "subversion.eclass: can't copy to ${WORKDIR}/${P}."
einfo
}