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

Unified Diff: scripts/slave/recipe_modules/git_clone_bundler/api.py

Issue 1101673005: Extract functions from path recipe module so that step can depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 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
Index: scripts/slave/recipe_modules/git_clone_bundler/api.py
diff --git a/scripts/slave/recipe_modules/git_clone_bundler/api.py b/scripts/slave/recipe_modules/git_clone_bundler/api.py
index 0adebaf832bf2acba8692aa613c9d485a8777d30..b2fdd8dc1edba0f2b5bf7f292f0c06f78b0d6017 100644
--- a/scripts/slave/recipe_modules/git_clone_bundler/api.py
+++ b/scripts/slave/recipe_modules/git_clone_bundler/api.py
@@ -30,8 +30,8 @@ class GitCloneBundlerApi(recipe_api.RecipeApi):
return hashlib.md5(base).hexdigest()
def _setup(self):
- self.m.path.rmtree('old bundles', self.bundle_dir)
- self.m.path.makedirs('bundles', self.bundle_dir)
+ self.m.file.rmtree('old bundles', self.bundle_dir)
+ self.m.file.makedirs('bundles', self.bundle_dir)
def _bundle(self, git_path, gs_bucket, gs_subpath, refs, name,
unauthenticated_url):
@@ -127,7 +127,7 @@ class GitCloneBundlerApi(recipe_api.RecipeApi):
hashlib.md5(repo_manifest_url).hexdigest())
# Initialize the 'repo' checkout.
- self.m.path.makedirs('repo', checkout_root)
+ self.m.file.makedirs('repo', checkout_root)
self.m.repo.init(repo_manifest_url, cwd=checkout_root)
self.m.repo.sync('--no-clone-bundle', cwd=checkout_root)
« no previous file with comments | « scripts/slave/recipe_modules/git_clone_bundler/__init__.py ('k') | scripts/slave/recipe_modules/path/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698