update tar formats

This commit is contained in:
MX 2022-10-13 17:08:00 +03:00
parent 7b16de2d6f
commit da17adb5ee
No known key found for this signature in database
GPG Key ID: 6C4C311DFD4B4AB5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)