diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-21 23:32:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-21 23:32:21 +0000 |
commit | b32e8e2cd6f646340455f531ff4e53f871a04dcd (patch) | |
tree | 2a1b96887767e8b237eedfd48bf85572ee3b3c2a /eclass/subversion.eclass | |
parent | ~amd64 (diff) | |
download | gentoo-2-b32e8e2cd6f646340455f531ff4e53f871a04dcd.tar.gz gentoo-2-b32e8e2cd6f646340455f531ff4e53f871a04dcd.tar.bz2 gentoo-2-b32e8e2cd6f646340455f531ff4e53f871a04dcd.zip |
make sure user subversion supports http
Diffstat (limited to 'eclass/subversion.eclass')
-rw-r--r-- | eclass/subversion.eclass | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index 2102104d87af..b0411f580f76 100644 --- a/eclass/subversion.eclass +++ b/eclass/subversion.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.23 2005/07/11 15:08:06 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.24 2005/09/21 23:32:21 vapier Exp $ ## --------------------------------------------------------------------------- # # Author: Akinori Hattori <hattya@gentoo.org> @@ -107,9 +107,14 @@ function subversion_svn_fetch() { # check for the protocol. case ${ESVN_REPO_URI%%:*} in - http) ;; - https) ;; - svn) ;; + http|https) + if built_with_use dev-util/subversion nowebdav ; then + eerror "In order to emerge this package, you need to" + eerror "re-emerge subversion with USE=-nowebdav" + die "Please run 'USE=-nowebdav emerge subversion'" + fi + ;; + svn) ;; *) die "${ESVN}: fetch from "${ESVN_REPO_URI%:*}" is not yet implemented." ;; @@ -227,7 +232,7 @@ function subversion_bootstrap() { function subversion_src_unpack() { - if [ "${A}" != "" ]; then + if [[ -n ${A} ]] ; then unpack ${A} fi |