Add a top dir in the tgz archives.

This commit is contained in:
Matthieu Gautier 2018-03-20 17:59:49 +01:00
parent 87eee8e966
commit 2a03ddb2f7
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def make_archive(project, platform):
archive_add = lambda a, f : a.write(str(base_bin_dir/f), arcname=str(f))
else:
open_archive = lambda a : tarfile.open(str(a), 'w:gz')
archive_add = lambda a, f : a.add(str(base_bin_dir/f), arcname=str(f))
archive_add = lambda a, f : a.add(str(base_bin_dir/f), arcname="{}/{}".format(archive_name, str(f)))
with open_archive(archive) as arch:
for f in file_to_archives:
archive_add(arch, f)