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

Unified Diff: git_cache.py

Issue 825133002: Speculative fix for build on windows build bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: expected_root Created 6 years 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 | « gclient_utils.py ('k') | recipes/android.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cache.py
diff --git a/git_cache.py b/git_cache.py
index b2de8ba30da87d4f62d105ce46d8a0b92409182d..cb7f7e30dfcd55bd563fb51f92c4b753501c789b 100755
--- a/git_cache.py
+++ b/git_cache.py
@@ -312,7 +312,7 @@ class Mirror(object):
retcode = 0
finally:
# Clean up the downloaded zipfile.
- gclient_utils.rmtree(tempdir)
+ gclient_utils.rm_file_or_tree(tempdir)
if retcode:
self.print(
@@ -486,7 +486,7 @@ class Mirror(object):
if os.path.isdir(os.path.join(cachepath, path))])
for dirent in dirlist:
if dirent.startswith('_cache_tmp') or dirent.startswith('tmp'):
- gclient_utils.rmtree(os.path.join(cachepath, dirent))
+ gclient_utils.rm_file_or_tree(os.path.join(cachepath, dirent))
elif (dirent.endswith('.lock') and
os.path.isfile(os.path.join(cachepath, dirent))):
repo_dirs.add(os.path.join(cachepath, dirent[:-5]))
« no previous file with comments | « gclient_utils.py ('k') | recipes/android.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698