diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-04-08 10:24:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-04-08 10:24:47 +0000 |
| commit | be963bf7db9c66f2ab76182de13d5e95c055ca66 (patch) | |
| tree | 1986a077c4201d82831f997960099e7d5b73efe2 | |
| parent | d9c27b940d4a3e737d7d9db565bf234828464959 (diff) | |
| download | poky-be963bf7db9c66f2ab76182de13d5e95c055ca66.tar.gz | |
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
| -rw-r--r-- | bitbake/lib/bb/fetch/cvs.py | 9 |
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): | |||
| 102 | if method == "dir": | 102 | if method == "dir": |
| 103 | cvsroot = ud.path | 103 | cvsroot = ud.path |
| 104 | else: | 104 | else: |
| 105 | cvsroot = ":" + method + ":" + ud.user | 105 | cvsroot = ":" + method |
| 106 | cvsproxyhost = data.getVar('CVS_PROXY_HOST', d, True) | ||
| 107 | if cvsproxyhost: | ||
| 108 | cvsroot += ";proxy=" + cvsproxyhost | ||
| 109 | cvsproxyport = data.getVar('CVS_PROXY_PORT', d, True) | ||
| 110 | if cvsproxyport: | ||
| 111 | cvsroot += ";proxyport=" + cvsproxyport | ||
| 112 | cvsroot += ":" + ud.user | ||
| 106 | if ud.pswd: | 113 | if ud.pswd: |
| 107 | cvsroot += ":" + ud.pswd | 114 | cvsroot += ":" + ud.pswd |
| 108 | cvsroot += "@" + ud.host + ":" + cvs_port + ud.path | 115 | cvsroot += "@" + ud.host + ":" + cvs_port + ud.path |
