Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Unified Diff: recipe_modules/gclient/api.py

Issue 1917263002: Revert of depot_tools: add infra_paths recipe module for infra-specific paths (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/gclient/__init__.py ('k') | recipe_modules/gclient/example.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/gclient/api.py
diff --git a/recipe_modules/gclient/api.py b/recipe_modules/gclient/api.py
index 997e9b8623bf10447d7beb256835436dda0813b8..6b44dab1d2bce72726b22b6552ef11de1abea020 100644
--- a/recipe_modules/gclient/api.py
+++ b/recipe_modules/gclient/api.py
@@ -134,7 +134,7 @@
def get_config_defaults(self):
return {
'USE_MIRROR': self.use_mirror,
- 'CACHE_DIR': self.m.infra_paths['git_cache'],
+ 'CACHE_DIR': self.m.path['git_cache'],
}
@staticmethod
@@ -276,7 +276,7 @@
self(name, ['recurse', 'git', 'config', var, val], **kwargs)
finally:
- cwd = kwargs.get('cwd', self.m.infra_paths['slave_build'])
+ cwd = kwargs.get('cwd', self.m.path['slave_build'])
if 'checkout' not in self.m.path:
self.m.path['checkout'] = cwd.join(
*cfg.solutions[0].name.split(self.m.path.sep))
@@ -290,13 +290,9 @@
prefix = '%sgclient ' % (('[spec: %s] ' % alias) if alias else '')
return self.m.python(prefix + 'revert',
- self.m.infra_paths['build'].join(
- 'scripts', 'slave', 'gclient_safe_revert.py'),
- [
- '.',
- self.m.infra_paths['depot_tools'].join(
- 'gclient', platform_ext={'win': '.bat'})
- ],
+ self.m.path['build'].join('scripts', 'slave', 'gclient_safe_revert.py'),
+ ['.', self.m.path['depot_tools'].join('gclient',
+ platform_ext={'win': '.bat'})],
infra_step=True,
**kwargs
)
@@ -338,7 +334,7 @@
print 'deleting %s' % path_to_file
os.remove(path_to_file)
""",
- args=[self.m.infra_paths['slave_build']],
+ args=[self.m.path['slave_build']],
infra_step=True,
)
« no previous file with comments | « recipe_modules/gclient/__init__.py ('k') | recipe_modules/gclient/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698