Skip to content
Snippets Groups Projects
Commit 1af4d5b0 authored by Boris Feld's avatar Boris Feld
Browse files

update-benchrepo: also put the benchrepo at the end of the archive

parent 5e86a207
No related branches found
No related tags found
No related merge requests found
......@@ -78,4 +78,6 @@
print("Archiving the new benchrepo file.")
tmp_archive_path = join(tmp_directory, "tmp.tar")
with tarfile.open(tmp_archive_path, "w") as new_tar_file:
new_tar_file.add(repository_path, arcname=repo_main_with_hash)
# Add the benchrepo file at the end so it's easier to replace it
new_tar_file.add(benchrepo_path, arcname=repo_details)
......@@ -81,5 +83,4 @@
new_tar_file.add(benchrepo_path, arcname=repo_details)
new_tar_file.add(repository_path, arcname=repo_main_with_hash)
# And finally overwrite the original tar in place
print("Overwriting the original archive")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment