Update diff_deps receipe to py3
Recipe-Nontrivial-Roll: build Bug: 1289280 Change-Id: Ia87693ab8187acc5fa5cbd76664b999ad65d2809 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3438326 Reviewed-by: Josip Sokcevic <sokcevic@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>changes/26/3438326/9
parent
1ba4135766
commit
988c0af5be
@ -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