diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-04-08 10:29:07 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-04-08 10:29:07 +0000 |
commit | 376946192e314ee0bd7d29e754e57bbbba52a36a (patch) | |
tree | b6e6d909bf405e14e08fe589277ef4bc6c8608ef /lib | |
parent | 9d3fe600317f92b563ea9def9f2b904cb9e3a90e (diff) | |
download | bitbake-376946192e314ee0bd7d29e754e57bbbba52a36a.tar.gz |
fetch/cvs.py Add proxy support to CVS fetcher (patch from Cyril Chemparathy/Poky)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/fetch/cvs.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/bb/fetch/cvs.py b/lib/bb/fetch/cvs.py index 70869d22a..01acc3f78 100644 --- a/lib/bb/fetch/cvs.py +++ b/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 |