summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-04-08 10:24:47 +0000
committerRichard Purdie <richard@openedhand.com>2008-04-08 10:24:47 +0000
commitbe963bf7db9c66f2ab76182de13d5e95c055ca66 (patch)
tree1986a077c4201d82831f997960099e7d5b73efe2 /bitbake/lib/bb
parentd9c27b940d4a3e737d7d9db565bf234828464959 (diff)
downloadopenembedded-core-be963bf7db9c66f2ab76182de13d5e95c055ca66.tar.gz
openembedded-core-be963bf7db9c66f2ab76182de13d5e95c055ca66.tar.bz2
openembedded-core-be963bf7db9c66f2ab76182de13d5e95c055ca66.zip
bitbake: Add proxy support to CVS fetcher (patch from Cyril Chemparathy)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4192 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch/cvs.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py
index 70869d22ad..01acc3f785 100644
--- a/bitbake/lib/bb/fetch/cvs.py
+++ b/bitbake/lib/bb/fetch/cvs.py
@@ -102,7 +102,14 @@ class Cvs(Fetch):
if method == "dir":
cvsroot = ud.path
else:
- cvsroot = ":" + method + ":" + ud.user
+ cvsroot = ":" + method
+ cvsproxyhost = data.getVar('CVS_PROXY_HOST', d, True)
+ if cvsproxyhost:
+ cvsroot += ";proxy=" + cvsproxyhost
+ cvsproxyport = data.getVar('CVS_PROXY_PORT', d, True)
+ if cvsproxyport:
+ cvsroot += ";proxyport=" + cvsproxyport
+ cvsroot += ":" + ud.user
if ud.pswd:
cvsroot += ":" + ud.pswd
cvsroot += "@" + ud.host + ":" + cvs_port + ud.path