From 36e6381963962f4355404768874fb74520458307 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Thu, 31 Oct 2019 13:08:45 -0700 Subject: [PATCH] [fuchsia] [packaging] Prettify parent folder name (flutter/engine#13463) Currently they are held in a folder with names like tmpXasY6 e.g. https://chrome-infra-packages.appspot.com/p/flutter/fuchsia-debug-symbols-x64/+/3HEz_9w6dBWxZX0oPwDKRRRAbE-60Ub38Yp9TFyvCaIC This should name them well. --- .../tools/fuchsia/merge_and_upload_debug_symbols.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/tools/fuchsia/merge_and_upload_debug_symbols.py b/engine/src/flutter/tools/fuchsia/merge_and_upload_debug_symbols.py index 78cf713f16..91d1fea865 100755 --- a/engine/src/flutter/tools/fuchsia/merge_and_upload_debug_symbols.py +++ b/engine/src/flutter/tools/fuchsia/merge_and_upload_debug_symbols.py @@ -97,7 +97,9 @@ def main(): for symbol_dir in symbol_dirs: assert os.path.exists(symbol_dir) and os.path.isdir(symbol_dir) - out_dir = NormalizeDirPathForRsync(args.out_dir) + arch = args.target_arch + out_dir = NormalizeDirPathForRsync( + os.path.join(args.out_dir, 'flutter-fuchsia-debug-symbols-%s' % arch)) if os.path.exists(out_dir): print 'Directory: %s is not empty, deleting it.' % out_dir shutil.rmtree(out_dir) @@ -108,9 +110,8 @@ def main(): ['rsync', '--recursive', NormalizeDirPathForRsync(symbol_dir), out_dir]) - cipd_def = WriteCIPDDefinition(args.target_arch, out_dir) - ProcessCIPDPackage(args.upload, cipd_def, args.engine_version, out_dir, - args.target_arch) + cipd_def = WriteCIPDDefinition(arch, out_dir) + ProcessCIPDPackage(args.upload, cipd_def, args.engine_version, out_dir, arch) return 0