Update diff_deps receipe to py3
This is a reland on 988c0af5be
R=aravindvasudev@google.com
Bug: 1357152
Recipe-Nontrivial-Roll: build
Change-Id: I93f8056908b50a7f41df488cfae200408d91e11b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3858159
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
changes/59/3858159/4
parent
b0fb8d570d
commit
228fedfaad
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from __future__ import print_function
|
||||
import os, sys
|
||||
|
||||
build_path = sys.argv[1]
|
||||
if os.path.exists(build_path):
|
||||
for (path, dir, files) in os.walk(build_path):
|
||||
for cur_file in files:
|
||||
if cur_file.endswith('index.lock'):
|
||||
path_to_file = os.path.join(path, cur_file)
|
||||
print('deleting %s' % path_to_file)
|
||||
os.remove(path_to_file)
|
||||
|
Loading…
Reference in New Issue