mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Make the downloaded tarfile a dotfile
This is so that the third_party directories can gitignore the downloaded tarfile. Currently theyre ignoring on *tar.gz Bug: b/324418194 Change-Id: Id4aeeec366de3a0cec410de6ddd63369a3a4680a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5454165 Reviewed-by: Joanna Wang <jojwang@chromium.org> Commit-Queue: Stephanie Kim <kimstephanie@google.com>
This commit is contained in:
@@ -2650,7 +2650,7 @@ class GcsDependency(Dependency):
|
|||||||
# Directory of the extracted tarfile contents
|
# Directory of the extracted tarfile contents
|
||||||
output_dir = os.path.join(root_dir, self.name.split(':')[0])
|
output_dir = os.path.join(root_dir, self.name.split(':')[0])
|
||||||
output_file = os.path.join(output_dir, self.output_file
|
output_file = os.path.join(output_dir, self.output_file
|
||||||
or gcs_file_name)
|
or f'.{gcs_file_name}')
|
||||||
|
|
||||||
# Remove any forward slashes and drop any extensions
|
# Remove any forward slashes and drop any extensions
|
||||||
file_prefix = self.object_name.replace('/', '_').split('.')[0]
|
file_prefix = self.object_name.replace('/', '_').split('.')[0]
|
||||||
|
|||||||
@@ -35,12 +35,8 @@ class GClientSmokeGcs(gclient_smoketest_base.GClientSmokeBase):
|
|||||||
|
|
||||||
tree = self.mangle_git_tree(('repo_22@1', 'src'))
|
tree = self.mangle_git_tree(('repo_22@1', 'src'))
|
||||||
tree.update({
|
tree.update({
|
||||||
'src/another_gcs_dep/llvmfile.tar.gz':
|
|
||||||
'tarfile',
|
|
||||||
'src/another_gcs_dep/extracted_dir/extracted_file':
|
'src/another_gcs_dep/extracted_dir/extracted_file':
|
||||||
'extracted text',
|
'extracted text',
|
||||||
'src/gcs_dep/deadbeef':
|
|
||||||
'tarfile',
|
|
||||||
'src/gcs_dep/extracted_dir/extracted_file':
|
'src/gcs_dep/extracted_dir/extracted_file':
|
||||||
'extracted text',
|
'extracted text',
|
||||||
'src/gcs_dep_with_output_file/clang-format-no-extract':
|
'src/gcs_dep_with_output_file/clang-format-no-extract':
|
||||||
|
|||||||
Reference in New Issue
Block a user