From 8c83c509918b3dc33a8dd6a9d461283afaf655a9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 29 Apr 2024 17:03:21 +0300 Subject: [PATCH] Don't zip sym files. --- scripts/symupload.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/scripts/symupload.py b/scripts/symupload.py index 7c8f547c2..8abaed682 100644 --- a/scripts/symupload.py +++ b/scripts/symupload.py @@ -23,12 +23,6 @@ def debug_extension(): return debug_ext -def zip_sym(sym_file): - zip_sym_file = sym_file + ".zip" - with zipfile.ZipFile(zip_sym_file, 'w', zipfile.ZIP_DEFLATED) as zipf: - zipf.write(sym_file, os.path.basename(sym_file)) - return zip_sym_file - def generate_sym_files(install_root): sym_files = [] @@ -47,12 +41,7 @@ def generate_sym_files(install_root): dump_syms_cmd = ["dump_syms", '-o', sym_file, '--inlines', debug_file] subprocess.run(dump_syms_cmd, check=True) - sym_files.append((debug_file, zip_sym(sym_file))) - - try: - os.remove(sym_file) - except PermissionError as e: - print(f"PermissionError removing '{sym_file}': {e}") + sym_files.append((debug_file, sym_file)) return sym_files