From 0e8724cf7e841fd6364f729411baaef894c66aca Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Tue, 13 Aug 2024 16:33:32 +0400 Subject: [PATCH] build: Fix warning on recent python --- scripts/scons_helpers/build-3rdparty.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/scons_helpers/build-3rdparty.py b/scripts/scons_helpers/build-3rdparty.py index f301f087f..bec792135 100644 --- a/scripts/scons_helpers/build-3rdparty.py +++ b/scripts/scons_helpers/build-3rdparty.py @@ -140,7 +140,10 @@ def unpack(ctx, filename, dirname): mkpath('tmp') tar = tarfile.open('src/'+filename, 'r') - tar.extractall('tmp') + try: + tar.extractall('tmp', filter='data') + except: + tar.extractall('tmp') tar.close() shutil.move(dirname_tmp, dirname_res)