From ada3db3214ff1c7ba664eaed2d65e9e4d0aeb0e0 Mon Sep 17 00:00:00 2001 From: Derron Hu Date: Fri, 18 Jul 2025 06:29:20 +0800 Subject: [PATCH] Add -snld flag to 7z (#3387) --- utils/_extraction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/_extraction.py b/utils/_extraction.py index 4ab1d4a5..a4ca89e7 100644 --- a/utils/_extraction.py +++ b/utils/_extraction.py @@ -94,7 +94,7 @@ def _extract_tar_with_7z(binary, archive_path, output_dir, relative_to): output_dir / relative_to) raise FileExistsError() cmd1 = (binary, 'x', str(archive_path), '-so') - cmd2 = (binary, 'x', '-si', '-aoa', '-ttar', f'-o{str(output_dir)}') + cmd2 = (binary, 'x', '-si', '-snld', '-aoa', '-ttar', f'-o{str(output_dir)}') get_logger().debug('7z command line: %s | %s', ' '.join(cmd1), ' '.join(cmd2)) proc1 = subprocess.Popen(cmd1, stdout=subprocess.PIPE) #pylint: disable=consider-using-with