diff --git a/fetch.py b/fetch.py index e867dadbe..7483f48a8 100755 --- a/fetch.py +++ b/fetch.py @@ -114,7 +114,7 @@ class GclientGitCheckout(GclientCheckout, GitCheckout): for key, value in soln.iteritems()) soln_strings.append(' {\n%s\n },' % soln_string) gclient_spec = 'solutions = [\n%s\n]\n' % '\n'.join(soln_strings) - extra_keys = ['target_os', 'target_os_only'] + extra_keys = ['target_os', 'target_os_only', 'cache_dir'] gclient_spec += ''.join('%s = %s\n' % (key, _format_literal(self.spec[key])) for key in extra_keys if key in self.spec) return gclient_spec diff --git a/fetch_configs/webrtc.py b/fetch_configs/webrtc.py index eb62892ad..8f4568dbb 100644 --- a/fetch_configs/webrtc.py +++ b/fetch_configs/webrtc.py @@ -31,6 +31,9 @@ class WebRTC(config_util.Config): if props.get('target_os'): spec['target_os'] = props['target_os'].split(',') + if props.get('cache_dir'): + spec['cache_dir'] = props['cache_dir'] + return { 'type': 'gclient_git', 'gclient_git_spec': spec,