summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-11 00:09:31 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-11 00:09:31 +0000
commit864626e3c1497bd443305a4c939c499b569a5588 (patch)
tree2290503ec0a62f11196dec00a484b3f6bbbdf238 /eclass/cvs.eclass
parent2.1.2_rc3-r2 revbump. This fixes bugs #128809, #157709, and #157734. (diff)
downloadgentoo-2-864626e3c1497bd443305a4c939c499b569a5588.tar.gz
gentoo-2-864626e3c1497bd443305a4c939c499b569a5588.tar.bz2
gentoo-2-864626e3c1497bd443305a4c939c499b569a5588.zip
add support for ECVS_PROXY/ECVS_PROXY_PORT #155017 by Botykai Zsolt
Diffstat (limited to 'eclass/cvs.eclass')
-rw-r--r--eclass/cvs.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index aa68dfce253c..002cc172448c 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.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/cvs.eclass,v 1.65 2006/10/14 20:27:21 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.66 2006/12/11 00:09:31 vapier Exp $
#
# Maintainer: vapier@gentoo.org (and anyone who wants to help)
@@ -115,7 +115,6 @@ inherit eutils
# ECVS_USER -- Username to use for authentication on the remote server
[ -z "$ECVS_USER" ] && ECVS_USER="anonymous"
-
# ECVS_PASS -- Password to use for authentication on the remote server
[ -z "$ECVS_PASS" ] && ECVS_PASS=""
@@ -275,7 +274,10 @@ cvs_fetch() {
then
local server="${ECVS_USER}@${ECVS_SERVER}"
else
- local server=":${ECVS_AUTH}:${ECVS_USER}@${ECVS_SERVER}"
+ local connection="${ECVS_AUTH}"
+ [[ -n ${ECVS_PROXY} ]] && connection="${connection};proxy=${ECVS_PROXY}"
+ [[ -n ${ECVS_PROXY_PORT} ]] && connection="${connection};proxyport=${ECVS_PROXY_PORT}"
+ local server=":${connection}:${ECVS_USER}@${ECVS_SERVER}"
fi
# Switch servers automagically if needed