diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-04 19:13:25 +0000 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-04 19:13:25 +0000 |
| commit | 7fdff0f3cde54edee2b9aadb83e8e3d21d6f4f8f (patch) | |
| tree | 00293401477fed22eb92b932069d042872f74d71 | |
| parent | c2ef2d4f5aedbf1d188e082d32c6e1e5f62891d9 (diff) | |
| download | poky-7fdff0f3cde54edee2b9aadb83e8e3d21d6f4f8f.tar.gz | |
base.bbclass: Improve the git proxy syntax to match the http/ftp syntax too
| -rw-r--r-- | meta/classes/base.bbclass | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 1b70bfdd5f..76b21382f5 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -742,12 +742,9 @@ def generate_git_config(e): | |||
| 742 | 742 | ||
| 743 | f = open(gitconfig_path, 'w') | 743 | f = open(gitconfig_path, 'w') |
| 744 | f.write("[core]\n") | 744 | f.write("[core]\n") |
| 745 | ignore_count = 1 | 745 | ignore_hosts = data.getVar('GIT_PROXY_IGNORE', e.data, True).split() |
| 746 | ignore_host = data.getVar('GIT_PROXY_IGNORE_1', e.data, True) | 746 | for ignore_host in ignore_hosts: |
| 747 | while (ignore_host): | ||
| 748 | f.write(" gitproxy = none for %s\n" % ignore_host) | 747 | f.write(" gitproxy = none for %s\n" % ignore_host) |
| 749 | ignore_count += 1 | ||
| 750 | ignore_host = data.getVar('GIT_PROXY_IGNORE_%s' % ignore_count, e.data, True) | ||
| 751 | f.write(proxy_command) | 748 | f.write(proxy_command) |
| 752 | f.close | 749 | f.close |
| 753 | 750 | ||
