]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Improve the git proxy syntax to match the http/ftp syntax too
authorRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Nov 2008 19:13:25 +0000 (19:13 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Nov 2008 19:13:25 +0000 (19:13 +0000)
meta/classes/base.bbclass

index 1b70bfdd5f3a945364cce7edf6fb85b36b9ed6da..76b21382f5054be91dfb55a36337e005d254851c 100644 (file)
@@ -742,12 +742,9 @@ def generate_git_config(e):
 
                 f = open(gitconfig_path, 'w')
                 f.write("[core]\n")
-                ignore_count = 1
-                ignore_host = data.getVar('GIT_PROXY_IGNORE_1', e.data, True)
-                while (ignore_host):
+                ignore_hosts = data.getVar('GIT_PROXY_IGNORE', e.data, True).split()
+                for ignore_host in ignore_hosts:
                         f.write("    gitproxy = none for %s\n" % ignore_host)
-                        ignore_count += 1
-                        ignore_host = data.getVar('GIT_PROXY_IGNORE_%s' % ignore_count, e.data, True)
                 f.write(proxy_command)
                 f.close