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
This commit is contained in:
Richard Purdie 2008-04-08 10:24:47 +00:00
parent d9c27b940d
commit be963bf7db
1 changed files with 8 additions and 1 deletions

View File

@ -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