From da17adb5ee477d394eb765a96738513358e008d5 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Thu, 13 Oct 2022 17:08:00 +0300 Subject: [PATCH] update tar formats --- scripts/flipper/assets/copro.py | 2 +- scripts/sconsdist.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/flipper/assets/copro.py b/scripts/flipper/assets/copro.py index f6b6849cf..d39f30333 100644 --- a/scripts/flipper/assets/copro.py +++ b/scripts/flipper/assets/copro.py @@ -60,7 +60,7 @@ class Copro: array.append({"name": filename, "sha256": file_sha256(source_file), **kwargs}) def bundle(self, output_file, stack_file_name, stack_type, stack_addr=None): - self.output_tar = tarfile.open(output_file, "w:gz", format=tarfile.GNU_FORMAT) + self.output_tar = tarfile.open(output_file, "w:gz", format=tarfile.USTAR_FORMAT) stack_file = os.path.join(self.mcu_copro, stack_file_name) # Form Manifest diff --git a/scripts/sconsdist.py b/scripts/sconsdist.py index 50ffe0c4b..5f38ec980 100644 --- a/scripts/sconsdist.py +++ b/scripts/sconsdist.py @@ -181,7 +181,7 @@ class Main(App): ), "w:gz", compresslevel=9, - format=tarfile.GNU_FORMAT, + format=tarfile.USTAR_FORMAT, ) as tar: tar.add(bundle_dir, arcname=bundle_dir_name)