added patch to depot tools

This commit is contained in:
Your Name 2021-05-27 14:53:00 +00:00
parent 9b3dc051cb
commit ad75ab97d8
2 changed files with 9 additions and 4 deletions

View File

@ -1,10 +1,9 @@
diff --git a/gclient_scm.py b/gclient_scm.py diff --git a/gclient_scm.py b/gclient_scm.py
index 8a3410a8..f94af977 100644
--- a/gclient_scm.py --- a/gclient_scm.py
+++ b/gclient_scm.py +++ b/gclient_scm.py
@@ -1012,28 +1012,35 @@ class GitWrapper(SCMWrapper): @@ -1012,28 +1012,35 @@ class GitWrapper(SCMWrapper):
gclient_utils.safe_makedirs(parent_dir) gclient_utils.safe_makedirs(parent_dir)
template_dir = None template_dir = None
+ use_fetch = False + use_fetch = False
+ +
@ -37,7 +36,7 @@ index 8a3410a8..f94af977 100644
else: else:
# Otherwise, we're just interested in the HEAD. Just use --depth. # Otherwise, we're just interested in the HEAD. Just use --depth.
clone_cmd.append('--depth=1') clone_cmd.append('--depth=1')
- tmp_dir = tempfile.mkdtemp( - tmp_dir = tempfile.mkdtemp(
- prefix='_gclient_%s_' % os.path.basename(self.checkout_path), - prefix='_gclient_%s_' % os.path.basename(self.checkout_path),
- dir=parent_dir) - dir=parent_dir)
@ -52,7 +51,7 @@ index 8a3410a8..f94af977 100644
@@ -1328,6 +1335,9 @@ class GitWrapper(SCMWrapper): @@ -1328,6 +1335,9 @@ class GitWrapper(SCMWrapper):
if refspec: if refspec:
fetch_cmd.append(refspec) fetch_cmd.append(refspec)
+ if hasattr(options, 'no_history') and options.no_history: + if hasattr(options, 'no_history') and options.no_history:
+ fetch_cmd.append('--depth=1') + fetch_cmd.append('--depth=1')
+ +

View File

@ -19,6 +19,12 @@ echo -e ${RED} -------- lastest version is: $VERSION ${NC}
cd .. cd ..
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
# apply patchs
cd depot_tools/
git apply ../bromite-buildtools/depot_tools.diff
cd ..
PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH
env env