Skip to content

Commit cdfc323

Browse files
committed
changing tarfile methods from write to add
1 parent 3a17446 commit cdfc323

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ci/pack-assets.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ def sha256sum(path):
8585
content_type = 'application/gzip'
8686
archive_name = '{}.tar.gz'.format(archive_basename)
8787
with tarfile.open(archive_name, 'x:gz') as archive:
88-
archive.write(iapyx_cli_path, arcname=iapyx_cli_name)
89-
archive.write(iapyx_load_path, arcname=iapyx_load_name)
90-
archive.write(iapyx_proxy_path, arcname=iapyx_proxy_name)
91-
archive.write(iapyx_qr_path, arcname=iapyx_qr_name)
92-
archive.write(vitup_path, arcname=vitup_name)
93-
archive.write(vitup_cli_path, arcname=vitup_cli_name)
94-
archive.write(snapshot_service_path, arcname=snapshot_service_name)
95-
archive.write(snapshot_cli_path, arcname=snapshot_cli_name)
96-
archive.write(registration_service_path, arcname=registration_service_name)
88+
archive.add(iapyx_cli_path, arcname=iapyx_cli_name)
89+
archive.add(iapyx_load_path, arcname=iapyx_load_name)
90+
archive.add(iapyx_proxy_path, arcname=iapyx_proxy_name)
91+
archive.add(iapyx_qr_path, arcname=iapyx_qr_name)
92+
archive.add(vitup_path, arcname=vitup_name)
93+
archive.add(vitup_cli_path, arcname=vitup_cli_name)
94+
archive.add(snapshot_service_path, arcname=snapshot_service_name)
95+
archive.add(snapshot_cli_path, arcname=snapshot_cli_name)
96+
archive.add(registration_service_path, arcname=registration_service_name)
9797

9898
# verify archive
9999
shutil.unpack_archive(archive_name, './unpack-test')

0 commit comments

Comments
 (0)