OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Meta checkout manager supporting both Subversion and GIT.""" | 6 """Meta checkout manager supporting both Subversion and GIT.""" |
7 # Files | 7 # Files |
8 # .gclient : Current client configuration, written by 'config' command. | 8 # .gclient : Current client configuration, written by 'config' command. |
9 # Format is a Python script defining 'solutions', a list whose | 9 # Format is a Python script defining 'solutions', a list whose |
10 # entries each are maps binding the strings "name" and "url" | 10 # entries each are maps binding the strings "name" and "url" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 class DependencySettings(GClientKeywords): | 213 class DependencySettings(GClientKeywords): |
214 """Immutable configuration settings.""" | 214 """Immutable configuration settings.""" |
215 def __init__( | 215 def __init__( |
216 self, parent, url, safesync_url, managed, custom_deps, custom_vars, | 216 self, parent, url, safesync_url, managed, custom_deps, custom_vars, |
217 custom_hooks, deps_file, should_process): | 217 custom_hooks, deps_file, should_process): |
218 GClientKeywords.__init__(self) | 218 GClientKeywords.__init__(self) |
219 | 219 |
220 # These are not mutable: | 220 # These are not mutable: |
221 self._parent = parent | 221 self._parent = parent |
222 self._safesync_url = safesync_url | 222 self._safesync_url = safesync_url |
223 if url == CHROMIUM_SRC_URL: | 223 self._deps_file = deps_file |
224 self._deps_file = 'DEPS' | |
225 else: | |
226 self._deps_file = deps_file | |
227 self._url = url | 224 self._url = url |
228 # 'managed' determines whether or not this dependency is synced/updated by | 225 # 'managed' determines whether or not this dependency is synced/updated by |
229 # gclient after gclient checks it out initially. The difference between | 226 # gclient after gclient checks it out initially. The difference between |
230 # 'managed' and 'should_process' is that the user specifies 'managed' via | 227 # 'managed' and 'should_process' is that the user specifies 'managed' via |
231 # the --unmanaged command-line flag or a .gclient config, where | 228 # the --unmanaged command-line flag or a .gclient config, where |
232 # 'should_process' is dynamically set by gclient if it goes over its | 229 # 'should_process' is dynamically set by gclient if it goes over its |
233 # recursion limit and controls gclient's behavior so it does not misbehave. | 230 # recursion limit and controls gclient's behavior so it does not misbehave. |
234 self._managed = managed | 231 self._managed = managed |
235 self._should_process = should_process | 232 self._should_process = should_process |
236 # This is a mutable value which has the list of 'target_os' OSes listed in | 233 # This is a mutable value which has the list of 'target_os' OSes listed in |
(...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2197 print >> sys.stderr, 'Error: %s' % str(e) | 2194 print >> sys.stderr, 'Error: %s' % str(e) |
2198 return 1 | 2195 return 1 |
2199 finally: | 2196 finally: |
2200 gclient_utils.PrintWarnings() | 2197 gclient_utils.PrintWarnings() |
2201 | 2198 |
2202 | 2199 |
2203 if '__main__' == __name__: | 2200 if '__main__' == __name__: |
2204 sys.exit(Main(sys.argv[1:])) | 2201 sys.exit(Main(sys.argv[1:])) |
2205 | 2202 |
2206 # vim: ts=2:sw=2:tw=80:et: | 2203 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |