mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
base.bbclass: Improve the git proxy syntax to match the http/ftp syntax too
This commit is contained in:
@@ -742,12 +742,9 @@ def generate_git_config(e):
|
|||||||
|
|
||||||
f = open(gitconfig_path, 'w')
|
f = open(gitconfig_path, 'w')
|
||||||
f.write("[core]\n")
|
f.write("[core]\n")
|
||||||
ignore_count = 1
|
ignore_hosts = data.getVar('GIT_PROXY_IGNORE', e.data, True).split()
|
||||||
ignore_host = data.getVar('GIT_PROXY_IGNORE_1', e.data, True)
|
for ignore_host in ignore_hosts:
|
||||||
while (ignore_host):
|
|
||||||
f.write(" gitproxy = none for %s\n" % ignore_host)
|
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.write(proxy_command)
|
||||||
f.close
|
f.close
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user