Remove restriction on paths in 'deps_file' setting.

BUG=172935
Review URL: https://codereview.chromium.org/12089080

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@179741 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
mmoss@chromium.org 12 years ago
parent 0689a623d8
commit d0b272b3bc

@ -197,9 +197,9 @@ class DependencySettings(GClientKeywords):
raise gclient_utils.Error( raise gclient_utils.Error(
('dependency url must be either a string, None, ' ('dependency url must be either a string, None, '
'File() or From() instead of %s') % self._url.__class__.__name__) 'File() or From() instead of %s') % self._url.__class__.__name__)
if '/' in self._deps_file or '\\' in self._deps_file: # Make any deps_file path platform-appropriate.
raise gclient_utils.Error('deps_file name must not be a path, just a ' for sep in ['/', '\\']:
'filename. %s' % self._deps_file) self._deps_file = self._deps_file.replace(sep, os.sep)
@property @property
def deps_file(self): def deps_file(self):

Loading…
Cancel
Save