]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: Add proxy support to CVS fetcher (patch from Cyril Chemparathy)
authorRichard Purdie <richard@openedhand.com>
Tue, 8 Apr 2008 10:24:47 +0000 (10:24 +0000)
committerRichard Purdie <richard@openedhand.com>
Tue, 8 Apr 2008 10:24:47 +0000 (10:24 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4192 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/lib/bb/fetch/cvs.py

index 70869d22ad3fc830b5cf4cd6ed56ba50c7cc4741..01acc3f7858eb0f15dfeeeee2b69708eff109701 100644 (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